Ver Mensaje Individual
  #3 (permalink)  
Antiguo 06/01/2011, 07:14
alexgonzalez
 
Fecha de Ingreso: enero-2009
Mensajes: 112
Antigüedad: 15 años, 4 meses
Puntos: 0
Respuesta: mensaje de error si el valor en null

buenos dias colega aqui te coloco la forma en la que lo lleno,

SqlDataAdapter da;
DataTable dt = new DataTable();

try
{
da = new SqlDataAdapter(sSel, sCnn);
da.Fill(dt);
this.GridView1.DataSource = dt;

this.GridView1.DataBind();
LabelInfo.Text = String.Format("Total datos en la tabla: {0}", dt.Rows.Count);
}

catch (Exception ex)
Gracias por la ayuda...