How "FormsBindingNavigatorSaveItem" save value in cell in "DataGridViewComboxBoxColumn" in...

  • Thread starter Thread starter whateverxyz
  • Start date Start date
W

whateverxyz

Guest
Hello Community

I created an SQL Server table and made one of the fields a ComboBox.

I drag the table onto a form.

Now On the form the DataGridview ComboBox ColumnType is "DataGridViewComboxBoxColumn".

In the Bound Column Properties "Items" click the elipses for the collection.

In the collections enter the values on a separate line without quotes.

When the application runs the DataGridView appears, it is here that you select
an item from the ComboBox.

On the form there is a "FormsBindingNavigatorSaveItem" which is executed by clicking the "Disk
Icon" on the toolbar on the top of the page that was created when the table was
dragged onto the form.

The problem is that when the Disk Icon is clicked and the "FormsBindingNavigatorSaveItem" executes, it saves that row but the value that was selected in the ComboBox does not get saved.

Since the ComboBox was created as a field in the table can you make the
"FormsBindingNavigatorSaveItem" save the value in the "DataGridViewComboxBoxColumn"?

Thank you
Shabeaut

Continue reading...
 
Back
Top