Hi all,
I want to move the second row up and bring the third row to second position down in grid
like this i will movw up any row in grid
so i delete that row index and insert to new row in to my desired index in the grid and i store the values in idand i set the value to the new row
Is ithe code correct?
var grid=igtbl_getGridById("UltraWebGrid1");rowindex=igtbl_getActiveRow("UltraWebGrid1")
var row=grid.Rows.getRow(rowindex);var id=actrow.cells.fromkey(id)grid.Rows.remove(rowindex);rowindex=rowindex+1grid.Rows.insert(row, rowindex);
row.cell(0).setvalue(id))assigning thevalues to new row)can any one suggest me?
What happens with the current code? Could you explain the problem?
I can see some syntax issues in current code. Let me know if you want me to correct the code.
Also let me know that why you want to change the Id after swapping the rows.
Yes this code is not working it opens the add new function and
delete the selected row .i wrote the above function in cell click handler of grid..
I want to keep a upbutton and down button in my each row of grid and if i click the up button that selected row should move up
and if click down button the row should move one position down
Any other idea to move the selected row up or down?
I got the above code from net by searching..
can u suggest me any good idea and correct my mistakes to make the code work well