this works but the rowid generated is not 0 but does +1 to the no of rows,So if you have lets say 20 row in your grid.the row i added in the start but when i want to do validation and show that 21 th row has wrong data but the row is at start so it should show 1st row have wrong data.it seems to be problem then.not sure how to rectify this issue.
Anyone!!