ComboBox Data Binding
Hello,
I'm binding a typed datatable to the dataset. I have a combo box with the following properties:
ID - cbo
DisplayMember - Name (a column in the data table)
ValueMember - ID (a column in the DT)
In the load method of the windows form, I have:
TypedDataAdapter.Fill(MyTypedDS.NameTable)
cbo.DataSource = MyTypedDS.NameTable
cbo.Refresh()
Now, I put a break in the app. The data table actually has 14 records; however, when it converts the table into a DataView using DefaultView, it only has 1 record. Any ideas why?
I previewed the data at the DataAdapter level, and it has the 14 records.
Thanks,
Brian
__________________
Brian
|