Johny,
What Ken was trying to tell you is that the DisplayMember value must match
exactly, case and all.
Make sure where you specify "field_caption" as your Display Member, that is
matches exactly in case to the field name in your Data Table.
Regards,
Ben S. Stahlhood II
Johny 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
datatable with my combobox "cbxField.DataSource" it doesn't show anything
just "System.Data.DataRowView" like item in my combo....