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

Update Row Order in code behind

0 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 20 Sep 2012, 09:32 PM
Hello,

I have a RadGrid whos information comes from a external DataBase, so I feed it with a DataTable in code behind, but what I need to do is let the client have the option of updating the row order, so I have 2 buttons (Row up, Row down) so what I want is once he clicks one of those buttons it updates de row on the grid but also catch that on the code behind so I can update my SQL Table with the Grid info.
The SQL table has a order column so I would need to update this. I´ve been able to do the row up and down via javascript but it´s only a visible thing nothing really changes since I later catch the datasource of the Grid and it appears unchanged.

Any ideas on how I can do this?

Thanks for your time.
Jonathan

PS: I thought about the drag and drop option telerik has for it's grid but I think it's far more complicated to implement than what I really need.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Jonathan
Top achievements
Rank 1
Share this question
or