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

insert new row

2 Answers 89 Views
GridView
This is a migrated thread and some comments may be shown as answers.
rastin
Top achievements
Rank 1
rastin asked on 27 Dec 2011, 11:11 AM
hi all
i have an table with id filed that has primary key.
i want when i select an row and click on new row then the new row insert next of selected item and id fields re arrange.
can help?
thankful.

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 27 Dec 2011, 03:49 PM
Hello,

When you click on the Insert New Item of the RadGridView an AddingNewDataItem event is raised. You could subscribe to it and place the item to be inserted where you prefer in the bound collection. I am not sure what do you mean by "id fields re arrange". Do you want the items to change their IDs?

Kind regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
rastin
Top achievements
Rank 1
answered on 27 Dec 2011, 05:31 PM
hi
thanks for reply.
yes.
i want when i select an row and insert new row. my new row insert next of selected row and id (primiry key) of that =selectedrowindex+1.
but i dont know what must i do?
can help me?
thankful.
Tags
GridView
Asked by
rastin
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
rastin
Top achievements
Rank 1
Share this question
or