Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/06/2005, 08:35
Avatar de splinter
splinter
 
Fecha de Ingreso: junio-2004
Ubicación: Misantla,Ver.Mexico
Mensajes: 181
Antigüedad: 19 años, 10 meses
Puntos: 0
Usando un SP y un reader
...
...
oComando.Parameters.Add("@opc", SqlDbType.Int) : oComando.Parameters.Item("@opc").Value = opc
oComando.Parameters.Add("@param1", SqlDbType.Char, 12) : oComando.Parameters.Item("@param1").Value = Param1.ToString
oComando.Parameters.Add("@param2", SqlDbType.Char, 12) : oComando.Parameters.Item("@param2").Value = Param2.ToString
MyDR = oComando.ExecuteReader
ElGrid.DataSource = MyDR
ElGrid.DataBind() 'LLENAR EL GRID