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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

21131 Nov 3,2004 07:20 AM UTC Nov 3,2004 10:32 AM UTC WinForms 1
loading
Tags: Grouping
Vincent Loy Chee Hoon
Asked On November 3, 2004 07:20 AM UTC

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

Administrator [Syncfusion]
Replied On 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"]);
	}
}

CONFIRMATION

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.

Warning Icon 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.Close Icon

;