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.
Unfortunately, activation email could not send to your email. Please try again.

Getting field value in RowsDeleted event

Thread ID:





33060 Aug 11,2005 06:09 PM Aug 11,2005 07:11 PM Windows Forms 1
Tags: GridControl
dan carr
Asked On August 11, 2005 06:09 PM

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

Administrator [Syncfusion]
Replied On August 11, 2005 07:11 PM

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.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.