470,843 Members | 1,988 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,843 developers. It's quick & easy.

datagridview refresh @ runtime c#

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
7 7052

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
4,871 Expert 4TB
Are you using a dataset? How are filling the DGV?
Oct 19 '07 #3
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
4,871 Expert 4TB
So if the datatable is the source you need to update that, simply refreshing the DGV will not work. HTH.
Oct 20 '07 #5
call the form load with 2 arguments ,it ll work
Oct 21 '10 #6
By Using Fillby Method In Table Adapter we can refesh Those Thigs


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

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.

Similar topics

1 post views Thread by RSH | last post: by
6 posts views Thread by George | last post: by
2 posts views Thread by Rick Shaw | last post: by
3 posts views Thread by David Cartwright | last post: by
3 posts views Thread by M K | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.