Forum Discussion

msap's avatar
msap
Frequent Contributor
7 years ago

insert a value to new row in a grid

hi all   I am trying to insert new row in a grid using below Java script: rowcount fronm the grid and insert the values into text boxes and combo boxes.   getting an error. Grid row index 116 i...
  • tristaanogre's avatar
    7 years ago

    wRowCount = number of rows.

     

    However, while the number of rows may be 116, the INDEX of the last row is 115.  When setting RowIndex, use the following

     

    RowIndex=Grid2.wRowCount -1;