I have created a windows form. On the form, I have several text boxes, and three comboboxes. On one of my comboboxes, whenever a selection is made, if the user decides to select a new item (For instance, if they selected the wrong item the first time), the first item in the combobox is changed to System.Data.DataRowView. If they try again to select a different item, then the last item they had picked gets replaced with System.Data.DataRowView. If the user continues to click on items in the combobox, eventually, everything will be replaced by System.Data.DataRowView.
The Form onload function calls: Me.DepartmentsTableAdapter.Fill(Me.CSR_HRData.Departments) to load data into the combobox from a SQL table. Other than that, I have some code that runs when the user clicks the save button to write the data to a SQL table. (This happens regardless of whether or not the button is clicked.)
In my databindings I have declared through the properties window of the combobox in the form designer (They look the same as the other combobox on that page):
SelectedItem:DepartmentsBindingSource - DepartmentName
SelectedCalue:DepartmentsBindingSource - DepartmentID
Text:DepartmentsBindingSource - DepartmentName
DataSource: DepartmentsBindingSource
DisplayMember: DepartmentName
Items: (Collection)
ValueMember: DepartmentID
Anyone have any ideas as o what is causing this strange behavior?
The Form onload function calls: Me.DepartmentsTableAdapter.Fill(Me.CSR_HRData.Departments) to load data into the combobox from a SQL table. Other than that, I have some code that runs when the user clicks the save button to write the data to a SQL table. (This happens regardless of whether or not the button is clicked.)
In my databindings I have declared through the properties window of the combobox in the form designer (They look the same as the other combobox on that page):
SelectedItem:DepartmentsBindingSource - DepartmentName
SelectedCalue:DepartmentsBindingSource - DepartmentID
Text:DepartmentsBindingSource - DepartmentName
DataSource: DepartmentsBindingSource
DisplayMember: DepartmentName
Items: (Collection)
ValueMember: DepartmentID
Anyone have any ideas as o what is causing this strange behavior?