cbValores.DataSource
= Nothing
Dim results = (From
row In
DsValues.Tables("table1").Select("valor_filter > 1").AsEnumerable()Select VALOR1 = row.Field(Of String)(1),
VALOR2 = row.Field(Of
String)(2)).Distinct().ToList()
cbValores.DataSource
= results
cbValores.DisplayMember
= "VALOR1"
cbValores.ValueMember
= "VALOR2"
No hay comentarios:
Publicar un comentario