By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,960 Members | 2,238 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,960 IT Pros & Developers. It's quick & easy.

datagridview refresh @ runtime c#

P: 39
Hi guys
I am win appl.
I was bind the datagridview from datatable.
i was changed datas @ runtime. datatable changed but my datagridview not refresh.
I written dagaridview.refresh(); not work
how to refresh?

Thanks in advance
Oct 19 '07 #1
Share this Question
Share on Google+
7 Replies

P: 76

U have to keep a button in the form in that button write the codeing to load the data to the datadrid (or) every update or add or delete write the coding to load the data....

Oct 19 '07 #2

Expert 2.5K+
P: 4,871
Are you using a dataset? How are filling the DGV?
Oct 19 '07 #3

P: 39
Thank u very much for ur input
Mr.Keno, Initially I get data from memory stream to datatable then dtb to bind DGV
but my problem is updated datatable, no changes in my form DGV
how to refresh
Give suggest me
Once again thanks a lot for ur immediate response guys

Oct 19 '07 #4

Expert 2.5K+
P: 4,871
So if the datatable is the source you need to update that, simply refreshing the DGV will not work. HTH.
Oct 20 '07 #5

P: n/a
call the form load with 2 arguments ,it ll work
Oct 21 '10 #6

P: n/a
By Using Fillby Method In Table Adapter we can refesh Those Thigs


<TableAdapterName>.Fill(<DatasetName>.<TableName >)
Nov 10 '10 #7

P: 8

After updating GridView just put these two lines


hope this will work
Nov 12 '10 #8

Post your reply

Sign in to post your reply or Sign up for a free account.