The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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
ADAdministrator 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.