Ver Mensaje Individual
  #12 (permalink)  
Antiguo 08/09/2005, 16:13
Avatar de Andres95
Andres95
Colaborador
 
Fecha de Ingreso: diciembre-2004
Mensajes: 1.802
Antigüedad: 19 años, 5 meses
Puntos: 38
Orales ya salio otro dataset mas....

yo me referia a este... ds ->> ds.Tables[0]....


Código:
string numeroCalidad = ds.Tables[0].Rows[dtgDatos.CurrentRowIndex][0].ToString();
string codigo = ds.Tables[0].Rows[dtgDatos.CurrentRowIndex][1].ToString();
string valor = ds.Tables[0].Rows[dtgDatos.CurrentRowIndex][2].ToString();

Y bueno aqui parece que vuelves lees desde la bd.... para obtener el valor a filtrar...y es hacia la vista donde debes apuntar no al dataset que cargaste en load ("ds")

Código:
DataSet dsFiltrar = new DataSet();
dsFiltrar = SqlHelper.ExecuteDataset(Configuracion.Cn,CommandT  ype.Text,
		 		"SELECT nroNC FROM tblsysGHNroCalidad WHERE strGrupo='"+tvwArbol.SelectedNode.Text+"'");
FiltroNroCalidad=dsFiltrar.Tables[0].Rows[0][0].ToString();
dvFiltro.RowFilter="nroNC='"+FiltroNroCalidad+"'";
dtgDatos.DataSource=dvFiltro;