Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
610
Reversing order of data rows
posted

I typically just set a BindingList(of T) as the DataSource property on my grid. Sometimes, I want to display this in inverse order. For example, if I have a BindingList(of NewsFeedItems), I'd like the newest items to be at the top. I can always do Insert(0) on my list, but that makes the code less legible and could be inefficient.

Is there a property that would reverse the order my rows are displayed in the grid - in a first shall be last, last shall be first kind of way?

Thanks!

Parents
No Data
Reply Children