For example:
1. I put row(index) 1 in edit mode
2. page posts back and I rebind a new datasource
3. after postback row still expanded and in edit mode even.
I want to clear all the expanded and edit mode items after post back.
I call this code from a button's onclick event:
private void LoadGrid(Int64 p) |
{ |
grd.Rebind(); |
grd.DataSource = BL.GetAll(p); |
grd.DataBind(); |
} |