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
95
Delete rows by custom button and then adding new rows error
posted

I am using an infragistics grid in my project and one of the requirements is that the user can delete only the last row of the grid. So, I have hidden the delete column from the grid and added a button on the page to delete the last row of the grid. It does this using myGrid.Rows(mygrid.rows.count-1).delete(). This is working fine. But later on after deleting few rows, if I decide to add a row then it is leading to an issue. As soon as I click on the add row button in the grid, all the rows that I deleted earlier reappears.

 

How can I handle this issue?

 

Thank you,

Prachi

Parents
No Data
Reply Children
No Data