Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

How "FormsBindingNavigatorSaveItem" save value in cell in "DataGridViewComboxBoxColumn" in DataGridView?

$
0
0

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


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>