This is a migrated thread and some comments may be shown as answers.

How Can I Clear Grid Insert / Edit State On Rebind

1 Answer 47 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Shafees
Top achievements
Rank 2
Shafees asked on 10 Nov 2010, 06:29 AM
Bind a grid and change its state to  edit / or insert mode after that i rebind() the grid but there persist the insert mode (or edit mode of that row index). How can i clear/cancel this edit/ insert mode on rebind?

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 10 Nov 2010, 06:53 AM
Hello,


The following code snippet will help you in this.
C#:
RadGrid1.MasterTableView.ClearEditItems();
// RadGrid1.EditIndexes.Clear();
RadGrid1.MasterTableView.IsItemInserted = false; // cloes the insertform
RadGrid1.Rebind();



-Shinu.
Tags
Grid
Asked by
Shafees
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or