471,350 Members | 1,640 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Move row in GridView


Is it possible to

1: Move a row up/down serverside. Like myGridView.Rows[1].MoveUp()
I can't find any way to do this.


2: Edit the datakey values on a GridViewRow. If I can do that I have
solved the move up/down problem because I can switch data between the rows.

Best regards

Claus Pedersen
Dec 9 '05 #1
1 6190
Hi Claus,

We cannot move a row up/down at server side. Since a database table is only
an aggregate of rows, it doesn't care about the order. You can only user
Order By clause when SELECT data from the table. If you're using an
auto-increment field as the primary key, you cannot modify it, since it's

Kevin Yu
"This posting is provided "AS IS" with no warranties, and confers no

Dec 10 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Nalaka | last post: by
1 post views Thread by Stephen | last post: by
2 posts views Thread by antonyliu2002 | last post: by
3 posts views Thread by Peter | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.