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

Adding a new row at top of the grid

1 Answer 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hadar Kaufman
Top achievements
Rank 1
Hadar Kaufman asked on 22 Feb 2009, 02:40 PM
How can I insert a new row at the top of the grid? currently new rows are added at the bottom (if there is a paging - they are added at the last page, bottom). I'm using automatic insert / update.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 25 Feb 2009, 11:18 AM
Hello Hadar,

I am sending you a small runnable application. Please give it a try and see if it works for you, or I am missing something important.
Please note that the default behavior of RadGrid is to add the new rows at the bottom(as you properly notice) .

Therefore I suggest you to set the SortExpression property in order to show last inserted row on the top.
For more information refer to the following link:
Select Last Inserted Row

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Hadar Kaufman
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or