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

Vinz: How to capture the Deleted record on the GridGroupingControl?

Hi, Can anyone advice me on how to capture the record details through GridGroupingControl_RecordDeleted or GridGroupingControl_RecordDeleting EventHandler when the record is deleted ? I had tried to used the Handler input parameters ''e'' and ''Sender'' but I could find the right property which actually contains the deleted record. Am I using the right way or there is other alternatives.Thanks for any advice. :) Best Regards Vincent

1 Reply

Administrator November 3, 2004 10:32 AM UTC

Here is a snippet that gets the DataRowView associated with the record that is being deleted in the RecordDeleting event.
private void Table_RecordDeleting(object sender, RecordEventArgs e)
{
	DataRowView drv = e.Record.GetData() as DataRowView;
	if(drv != null)
	{
		Console.WriteLine(drv["Col2"]);
	}
}
Loader.
Live Chat Icon For mobile
Up arrow icon