468,134 Members | 1,231 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,134 developers. It's quick & easy.

Datagridview with the reverse order of items

Hi all,

I have a datagriview and a data table. The order of rows in my datatable is r1,r2,r3,r4,r5, but now when displaying in datgridview I need to show them in the order of r5, r4, r3, r2, r1 ... That means I want to perform it in the reverse order.

Have you got any suggestion for me?

Thank kiu so much!
Dec 1 '09 #1
1 4606
149 100+
1. create DataView from your DataTable
2. sort it in DESC order
3. bind DataView to your grid

take a look at DataView
Dec 1 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

59 posts views Thread by Raymond Hettinger | last post: by
1 post views Thread by DBC User | last post: by
8 posts views Thread by | last post: by
2 posts views Thread by Doug | last post: by
7 posts views Thread by =?Utf-8?B?TG9zdEluTUQ=?= | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.