We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Getting the column value before deleting a row.

Hai , I am using GridDataBound Grid.I have a grid where the datasource is a dataTable.I am deleting couple of rows from the grid ,I want to capture the Column value of the deleting row.Can u please help me out in this. Thanks , Arvind H.C.

3 Replies

AD Administrator Syncfusion Team August 7, 2004 03:34 AM

I am not sure what you mena by the column value for a row that is being deleted. I assume there are likely several columns in teh row you want to delete. You can use the RowsDeleting event to be notified that rows are about to be deleted. The event args have From and To properties that tell you the range of rows being deleted. So, if rowIndex points to a row in this range, and colIndex is some column for which you want the value, you can use this.grid[rowIndex, colIndex].CellValue to retrieve the value of that cell.


AR arvind August 7, 2004 04:55 AM

The row which I am going to has multiple columns and one hidden Column ,I want the value of the hidden column of that row that is deleted >I am not sure what you mena by the column value for a row that is being deleted. I assume there are likely several columns in teh row you want to delete. > >You can use the RowsDeleting event to be notified that rows are about to be deleted. The event args have From and To properties that tell you the range of rows being deleted. So, if rowIndex points to a row in this range, and colIndex is some column for which you want the value, you can use this.grid[rowIndex, colIndex].CellValue to retrieve the value of that cell.


AD Administrator Syncfusion Team August 7, 2004 07:32 AM

You would use grid[rowIndex, hiddenColIndex].CellValue to retrieve the value of the hidden column.

Loader.
Live Chat Icon For mobile
Up arrow icon