468,290 Members | 2,034 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 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
Venky
Oct 19 '07 #1
7 6917
Inbaraj
76
hi...

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

reg
inbaraj
Oct 19 '07 #2
kenobewan
4,871 Expert 4TB
Are you using a dataset? How are filling the DGV?
Oct 19 '07 #3
Hi
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

regards,
Venky
Oct 19 '07 #4
kenobewan
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

Syntax

<TableAdapterName>.Fill(<DatasetName>.<TableName >)
Gridview.refresh();
Nov 10 '10 #7
Hi

After updating GridView just put these two lines

datagridview.DataSource=datatablename;
datagridview.DataBind();

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
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.