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

RadGrid: Switch an element in edit mode after insert

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mauro.cecili
Top achievements
Rank 1
mauro.cecili asked on 19 May 2008, 08:28 AM
I have this scenario: i have an user control to edit and insert elements in a radgrid. I don't use automatic insert/update but business code in update and insert command event.  I wish that after inserted, the  element switch in edit mode without come back to collapsed grid.
I tried with e.canceled = true in Insertcommand event but i don't know how to put in edit the inserted element.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 19 May 2008, 09:54 AM
Hi,

Try accessing the last inserted item and set that item in Edit mode(item.Edit=true). You can also refer the following code library which explains how to access the last inserted item in the code behind.
Select Last Inserted Row

Thanks
Princy.
Tags
Grid
Asked by
mauro.cecili
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or