Ver Mensaje Individual
  #4 (permalink)  
Antiguo 21/03/2005, 08:52
Avatar de Sayra
Sayra
 
Fecha de Ingreso: diciembre-2004
Mensajes: 365
Antigüedad: 19 años, 6 meses
Puntos: 1
A ver yo lo lleno asi y luego agrego las lineas que te mencione en el post anterior
y me funciona

Como lo llenas tu?
Dim ds As DataSet
Dim MyCommand As SqlDataAdapter

ds = New DataSet ()
MyCommand = New SqlDataAdapter ("select CodigoID, Agencia from Agencia" , PortalSettings.SqlConnectionString)
MyCommand.Fill(ds,"Agencia")

DropDownList1.DataSource = ds.Tables("Agencia").DefaultView
DropDownList1.DataTextField = "Agencia"
DropDownList1.DataValueField ="CodigoID"
DropDownList1.DataBind()
DropDownList1.Items.Insert(0, "Seleccione un item")
DropDownList1.SelectedIndex = 0