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

Adding a row at any index

1 Answer 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shivam
Top achievements
Rank 1
Shivam asked on 27 Jun 2012, 02:43 PM
i am able to add new row only before first row or after last row of the grid.

Can we add a row at any index in the gridview using default add button of the gridview?
for example: we have 5 rows in the gridview and we want to add a row at the 3rd position.

Please help...

1 Answer, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 02 Jul 2012, 01:43 PM
Hello,

To guarantee the position of an element  displayed in RadGridView you may have the elements sorted (adding a SortDescriptor).
The when adding the new element you shall set the index you sort by and the element will be positioned at the right place .


Kind regards,
Pavel Pavlov
the Telerik team

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

Tags
GridView
Asked by
Shivam
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Share this question
or