
21/05/2004, 15:24
|
 | Moderador | | Fecha de Ingreso: febrero-2002 Ubicación: México D.F
Mensajes: 8.004
Antigüedad: 23 años Puntos: 50 | |
Prueba de ésta forma: Cita: strSQL = "Select cdCodigo, cdDescripcion from centroDistribucion"
Dim daCentroDist As SqlClient.SqlDataAdapter = New SqlClient.SqlDataAdapter( strSQL , cnn)
Dim dsCentroDist As DataSet = New DataSet("dsCentroDist")
daCentroDist.Fill(dsCentroDist)
cobCentroDist.DataSource = dsCentroDist
cobCentroDist.DataTextField = "cdDescripcion"
cobCentroDist.DataValueField = "cdCodigo"
cobCentroDist.DataBind() Saludos |