Soge
Soge

Reputation: 3

How to Refresh GridView 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.

Upvotes: 0

Views: 2977

Answers (2)

Denis Biondic
Denis Biondic

Reputation: 8201

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

Upvotes: 0

Rahul
Rahul

Reputation: 77896

Does this works

GridView1.Invalidate(); 

Check this Control.Invalidate Method

Upvotes: 1

Related Questions