Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/12/2006, 09:59
NEST
 
Fecha de Ingreso: octubre-2006
Mensajes: 86
Antigüedad: 18 años, 4 meses
Puntos: 1
Re: Seleccionar row en Datagrid

En C# lo haria asi

ContadorPd = this.dataGridView1.RowCount;//Cuenta el numero de filas del datgrid 1
NC = Numero de columnas del datgrid

for (int j = 0; j <= ContadorPd - 1; j++)
{
for (int k = 1; k <= NC; k++)
{
FilaTabla1 = dataGridView1[k, j].Value.ToString();

if (FilaTabla1 == "VALOR REQUERIDO")
{
dataGridView1[k, j].Selected = true;
}

}