G
Guest
Hi....I have a problem with the combobox it's that it show the System.Data.DataRowView in the ListItems...What is the problem if a set my combobox with a datatable and that datatable have the data to show
datatable with my combobox "cbxField.DataSource" it doesn't show anythingJohny Segura said:I have this code:
Dim dsTemp As New DSSearchData
Dim rowSetting As DataRow
Dim rowField As DataRow
Dim _SearchFieldTable As DataTable
dsTemp.Merge(_DSSearchData)
For Each rowField In dsTemp.search_field.Rows
rowSetting = _DSSearchSettings.selected_search_field.FindBysearch_field_id(rowField("sear
ch_field_id"))
If rowSetting Is Nothing OrElse Not rowSetting("visible_flag") Then
rowField.Delete()
End If
Next
_SearchFieldTable = dsTemp.search_field
cbxField.DisplayMember = "field_caption"
cbxField.ValueMember = "search_field_id"
cbxField.DataSource = _SearchFieldTable
My datatable variable is "_SearchFieldTable" but when I bind this