Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
471
Inset a New row in a desired rowposition
posted

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+1
grid.Rows.insert(row, rowindex); 

row.cell(0).setvalue(id))assigning thevalues to new row)
can any one suggest me?

Parents Reply Children