Reputation: 1
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
Reputation: 8947
Try setting the DataSource again, as in:
gridview1.DataSource = <your data source goes here>;
Upvotes: 1