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

DataGridView Binding Refresh question

$
0
0

Hello Everyone,

I have on my Form a datagridview control that i bound to my DataTable in DataSet using BindingSource...

So datagridview.DataSource is my BindingSource

BindingSource.DataSource is my DataTable

Now, what i would like to  understand is, if do the following on some button click event

DataSet1.myDataTable(0).Title = "Something new"

(it changes the Title column value of the first row of myDataTable) , my DataGridView gets automaticaly refreshed in particulal cell that shows this Title Value.

Does this mean that in my scenario I dont need to manually call DataGridView.Refresh each time i decide to update some DataTable value directly in code?

Or in other words, will changing of datatable cause datagridview automatically to refresh display data, or I am supposed to handle it? My test shows, that i dont need to manually call Refresh

Thank You very much in advance

Milos


Viewing all articles
Browse latest Browse all 2535

Trending Articles



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