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

how toget the row index when inserting a new data

1 Answer 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
abinav
Top achievements
Rank 1
abinav asked on 24 May 2011, 12:43 PM
hi

i am getting the row index as -1 when i insert a new data i used the following
how to get the correct row or itemindex
int i = e.item.rowindex;

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 May 2011, 01:00 PM
Hi Abinav,

This is actually the default behavior of RadGrid control. However you should use TableView's InsertItemPageIndexAction property to modify it to better match your requirements. For a live example please examine the second grid in this online example.

Regards,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
General Discussions
Asked by
abinav
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or