This question is locked. New answers and comments are not allowed.
I am trying to populate a ComboBox with data from a access db. I have the following code that works in a normal combobox, but with the radcombobox does nothing:
Can you tell me what I have to change to make it work?
Thanks
| Dim ComboBox1 As New Telerik.WinControls.UI.RadComboBox |
| Dim cn As OleDbConnection |
| Dim connString As String = ligacao |
| cn = New OleDbConnection(connString) |
| cn.Open() |
| Dim da As New OleDb.OleDbDataAdapter(sql, cn) |
| Dim ds As DataSet = New DataSet |
| da.Fill(ds, "Tabela") |
| With ComboBox1 |
| .DataSource = ds.Tables(0) |
| .DisplayMember = "D1" |
| .ValueMember = "D2" |
| End With |
Can you tell me what I have to change to make it work?
Thanks