combobox.DataSource VS DataGrid.DataSource
-
What's the difference between a combobox.DataSource and a DataGrid.DataSource? If I do this in my code: mycombobox.DataSource = dbconn.GetDataSet().Tables[0].DefaultView; mydatagrid.DataSource = dbconn.GetDataSet().Tables[0].DefaultView; the datagrid gets filled with the correct values, the combobox with "System.Data.DataRowView" items. In .Net 1.1 however this problem didn't occurred, or did it? tnx for your help. Coulda, woulda, shoulda doesn't matter if you don't. :jig: :jig: :jig: :jig: :jig: :jig: :jig: :jig: :jig: :jig: :jig:
-
What's the difference between a combobox.DataSource and a DataGrid.DataSource? If I do this in my code: mycombobox.DataSource = dbconn.GetDataSet().Tables[0].DefaultView; mydatagrid.DataSource = dbconn.GetDataSet().Tables[0].DefaultView; the datagrid gets filled with the correct values, the combobox with "System.Data.DataRowView" items. In .Net 1.1 however this problem didn't occurred, or did it? tnx for your help. Coulda, woulda, shoulda doesn't matter if you don't. :jig: :jig: :jig: :jig: :jig: :jig: :jig: :jig: :jig: :jig: :jig:
Dunno about .Net 1.1, but I just ran across this issue as well. I used the DisplayMember property (in conjunction with DataSource) to properly display the value in a ComboBox/ListBox control. Otherwise I just saw the name of the object. www.lovethosetrains.com
-
Dunno about .Net 1.1, but I just ran across this issue as well. I used the DisplayMember property (in conjunction with DataSource) to properly display the value in a ComboBox/ListBox control. Otherwise I just saw the name of the object. www.lovethosetrains.com