Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/07/2013, 04:52
maialenlopez
 
Fecha de Ingreso: abril-2012
Mensajes: 449
Antigüedad: 12 años
Puntos: 7
Respuesta: Cargar en una misma linea de un dropdownlist dos valores

Ya lo he solucionado,

Lo que he echo ha sido juntar las dos columnas en el select y asi no tengo problemas.

Código vb.net:
Ver original
  1. Sql = "select distinct concat(DI,'->',DiDescript) as e from operario order by DI"

Y recojo el valor de esta forma:
Código vb.net:
Ver original
  1. Me.DropDownListS1.DataSource = ds.Tables(0)
  2. Me.DropDownListS1.DataValueField = "e"
  3. Me.DropDownListS1.DataTextField = "e"
  4. Me.DropDownListS1.DataBind()
  5. Me.DropDownListS1.Items.Insert(0, "")

__________________
Gracias por todo;

Un saludo