Ver Mensaje Individual
  #5 (permalink)  
Antiguo 11/08/2009, 20:38
keygen20
 
Fecha de Ingreso: noviembre-2008
Mensajes: 150
Antigüedad: 16 años, 3 meses
Puntos: 1
Respuesta: Ayuda Con Recorrido De Cajas de Texto en GRIDVIEW

Pero muchas gracias lo logre hacer.. si para alguien en algun futuro lo necesito aqui pongo el codigo.. que me funciono muchas gracias pedro.. en verdad :)

Cita:
for (int i = 0; i < GridView1.Rows.Count ; i++)
{
string strName = ((TextBox)GridView1.Rows[i].FindControl("txtName")).Text;
int code;
code = int.Parse(strName);

if (code <= 10)
{
((TextBox)GridView1.Rows[i].FindControl("txtName")).ForeColor = System.Drawing.Color.Red;
}
else if (code >= 11)
{
((TextBox)GridView1.Rows[i].FindControl("txtName")).ForeColor = System.Drawing.Color.Blue;
}
}