Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/03/2006, 11:24
Avatar de txarly
txarly
 
Fecha de Ingreso: marzo-2003
Ubicación: Eibar (Gipuzkoa)
Mensajes: 455
Antigüedad: 21 años, 2 meses
Puntos: 2
Comprobar si DataSet tiene registros

Hay alguna forma más eficiente, es decir, con menos codigo para comprobar si en el dataset tengo valores ?

Código:
if (ds.Tables.Count > 0) 
{
  if (ds.Tables[0].Rows.Count > 0)  
   {
      // sentencias
   }
}
__________________
¿Por qué Uri Geller doblaba cucharas?