liran
liran

Reputation: 1

rebind dataGridView

My Project include dataGridView Control, and i change the property: gridview1.columns.DataPropertyName at run time Now, i need rebind my gridView, how i do this. in asp.net is simple gridView1.DataBind(), bun how in c#.

Thanks..

Upvotes: 0

Views: 2199

Answers (1)

Adel Hazzah
Adel Hazzah

Reputation: 8947

Try setting the DataSource again, as in:

gridview1.DataSource = <your data source goes here>;

Upvotes: 1

Related Questions