D
Doug Bell
Hi,
I have a problem with a ComboBox bound to a DataView.
The ComboBox shows the correct number of rows but instead of the data, each
row shows "System.Data.DataRowView"
Can someone explain how to fix this and why it is happening?
The Form's Class has:
Imports DataAccessLayer
'Class that retrieves data as a DataSet
I have the following code in the forms Load Event:
Dim dvFac AS DataView
dvFac = dsPOs.Tables("Facs").DefaultView 'Creates a dataview based on
'Facs' Table
dvFac.Sort = "Facility ASC" 'Sorts Facs by field 'Facility'
ComboFacility.DropDownStyle = Windows.Forms.ComboBoxStyle.DropDown
'Sets ComboBox Style
ComboFacility.DataSource = dvFac 'Binds ComboBox to dataView
ComboFacility.Text = Facility 'retrieves current set facility from XML Doc
Thanks
Doug
I have a problem with a ComboBox bound to a DataView.
The ComboBox shows the correct number of rows but instead of the data, each
row shows "System.Data.DataRowView"
Can someone explain how to fix this and why it is happening?
The Form's Class has:
Imports DataAccessLayer
'Class that retrieves data as a DataSet
I have the following code in the forms Load Event:
Dim dvFac AS DataView
dvFac = dsPOs.Tables("Facs").DefaultView 'Creates a dataview based on
'Facs' Table
dvFac.Sort = "Facility ASC" 'Sorts Facs by field 'Facility'
ComboFacility.DropDownStyle = Windows.Forms.ComboBoxStyle.DropDown
'Sets ComboBox Style
ComboFacility.DataSource = dvFac 'Binds ComboBox to dataView
ComboFacility.Text = Facility 'retrieves current set facility from XML Doc
Thanks
Doug