Hi Team,
I have a grid with the field Serial, Name, Marks. The type of Serial field is option[drop down from 1 to 10]. Assume that i have 10 rows in the list and Serial field is from 1 to 10. So, if i click on rank 5 and select 1 here, i want to move it to number 1 and number 1 to 5. This is kind of swapping. Please suggest solution for this.
In another option, when i click on serial 5 and select 1, the current entire row should move to 1 and the 1st row should move to 2nd, and 2nd to 3rd..... till last row... I want the hierarchy of serial is always from 1 to 10 in asc order. I have tried sort method, it works but it won't increment the old value. On changing from 5 to 1, current row is moved to 1st and 1st row to 2nd, but the Serial of old first row will be 1 only. I want to increment it to 1 and all other like this.