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

Catching events in the extra section

Thread ID:

Created:

Updated:

Platform:

Replies:

60777 May 11,2007 10:37 AM UTC May 29,2007 09:11 AM UTC WinForms 3
loading
Tags: Grouping
Mitul
Asked On May 11, 2007 10:37 AM UTC

How can I catch events from an extra section?

i have a few editable text box and combo box fields in my extra section which affect all other rows in the grid, and i want to catch when the user types/selects things in this extra section.

i have tried to use TableControlCellValidating event, but when i call currentcell.endEdit(), to stop editing mode, i go into an infinite loop becuase CellValidating is called again.

RecordValueChanging does not invoke the event when editing the extra section cells.

Thanks

haneefm [Syncfusion]
Replied On May 11, 2007 09:06 PM UTC

Hi Mitul,

Try handling the TableControlCurrentCellChanged event to the current cell changes in grid. Please try the suggestion and let me know if this helps.

Best regards,
Haneef

Mitul
Replied On May 13, 2007 05:11 PM UTC

Hi, this solution doesn't work. The event is not being fired for the extra section editing. Please help.

Jeba S [Syncfusion]
Replied On May 29, 2007 09:11 AM UTC

Hi Mitul,

You could try handling TableControlCurrentCellChanged event and check for the ExtraSection to catch the changes.

private void gridGroupingControl1_TableControlCurrentCellChanged(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlEventArgs e)
{
Syncfusion.Grouping.Element element = e.TableControl.Table.DisplayElements[e.TableControl.CurrentCell.RowIndex];
if(element is ExtraSection)
{
Console.WriteLine("Editing");
}
}


Here is a small sample:
http://websamples.syncfusion.com/samples/Grid.Windows/F60777/main.htm

Kindly let us know if this helps.

Best Regards,
Jeba.

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

;