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

row edit dynamically

2 Answers 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
rocky
Top achievements
Rank 1
rocky asked on 22 Mar 2011, 11:41 AM
how to set a row in edit mode dynamically (according to index value generated in codebehind)

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Mar 2011, 12:01 PM
Hello,


The following code snippet will help you to put row in EditMode based on index.

Code:
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    RadGrid1.MasterTableView.Items[index].Edit = true; // set value of index based on requirement
    RadGrid1.MasterTableView.Rebind();
}



-Shinu.
0
rocky
Top achievements
Rank 1
answered on 22 Mar 2011, 12:08 PM
i want to put a particular row in edit mode if the DataItem is already in database.
Tags
Grid
Asked by
rocky
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
rocky
Top achievements
Rank 1
Share this question
or