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

force update in datagridview

$
0
0
hi all.
i have a problem with the standard datagridview control:
on my form i have a datagridview control, bounded to a datatable.
the datagridview is editable.
after the user modified some data in a row, and clicks on "save" in my toolbar, i wrote:
datatable dt=(DataTable)MyGrid.DataSource.GetChanges(DataRowState.MOdified);
BUT - dt=null !!!!
if and only if the user will click TAB or he will enter another row (force update on the grid) , dt will contain the changes !!!!
is there a way to force the updates even if the user clicks on the toolbar , right after he updated the grids row?

 

thank you.

Viewing all articles
Browse latest Browse all 2535

Trending Articles



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