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.
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.