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

Want RadGridView to display the latest object added to ObservableCollection on first row of RadGridView

1 Answer 22 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jonathon
Top achievements
Rank 1
Jonathon asked on 07 Sep 2011, 12:01 AM
Hi,

I was wondering, is there a way to display the latest object added to the ObservableCollection RadGridView is binding to as the first row of RadGridView? So instead of having each thing added to the ObservableCollection be added to the bottom of RadGridView, it would be added to the top of RadGridView.

Thanks,

Jonathon 

1 Answer, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 07 Sep 2011, 12:52 PM
Hello Jonathon,

In this case you should not add the object to the collection, but insert it at index 0.

To learn more about collections and how they work, please take a look here.

All the best,
Ross
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
GridView
Asked by
Jonathon
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or