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 field value in RowsDeleted event

Hello, How can I get the value of a cell after it''s record has been deleted from a GridDataBoundGrid? i.e. I have a record FirstName ''Bill'' LastName ''Smith'' The user deletes the record. The RowsDeletedEvent is called--is there some way to know the value deleted was ''Bill''? Thanks, Dan

1 Reply

AD Administrator Syncfusion Team August 11, 2005 11:11 PM UTC

In the grid.RowsDeleted, the row is already gone as the delete has already taken place. If you use the grid.RowsDeleting, this occurs before the row is deleted, so you can get at it there. private void gridDataBoundGrid1_RowsDeleting(object sender, GridRowRangeEventArgs e) { Console.WriteLine(this.gridDataBoundGrid1[e.To, 1].CellValue); } If you really need to know the rows in RowsDeleted, then you can cache them in RowsDeleting and then get them from your cache in RowsDeleted.

Loader.
Live Chat Icon For mobile
Up arrow icon