开发者

How to Refresh GridView in C#.Net Windows Form?

开发者 https://www.devze.com 2023-03-12 08:16 出处:网络
I\'m trying to Refresh GridView after data inserted. In ASP.Net GridView1.DataBind().That\'s work. But I don\'t know how to do that in C#.Net Windows Form.

I'm trying to Refresh GridView after data inserted. In ASP.Net GridView1.DataBind().That's work. But I don't know how to do that in C#.Net Windows Form. Please 开发者_高级运维answer me if you know. Thanks.


Does this works

GridView1.Invalidate(); 

Check this Control.Invalidate Method


I don't know what you bind your grid to, but you could always repeat the binding by re-setting the DataSource property

0

精彩评论

暂无评论...
验证码 换一张
取 消