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

Cancel SourceListListChanged event in gridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

32913 Aug 10,2005 06:36 AM UTC Aug 10,2005 01:13 PM UTC WinForms 3
loading
Tags: GridControl
Prathima Venkobachar
Asked On August 10, 2005 06:36 AM UTC

Hi, I am using this.gridGroupingControl.SourceListListChanged += event. On this event I want to check if the column mapping name in "abc" I want to cancel that event.How can I do it..? Thanks, Prathima

Administrator [Syncfusion]
Replied On August 10, 2005 07:56 AM UTC

As a general rule, events that end in ''ed'' are strictly notification events, they cannot be canceled. They happen after the action has been performed. To cancel things, you need to catch an ''ing'' event. So, exactly what behavior to you want to cancel, and is there some ''ing'' event associated with it? The SourceListListChanged event is a noticification event that occurs after the datasource has raised its ListChanged event. This means the action has already been performed on the datasource, and the grid cannot avoid it.

Prathima Venkobachar
Replied On August 10, 2005 10:15 AM UTC

I have a requirenment as below.Pl suggest how can I go about it. I have created a user control using gridGroupingControl. I use this control in two scenarios. 1.To display data in the grid and it has update option either row by row or On click of a button. 2.We have a import functionlaity .User can import data from the excel file and displays record in the form.Here they have option of updating only on click of a button. But The grid will have a checkbox in the column to select the records that they want to upadte. For both scenarios I am using the user control. The problem I am facing is in import scenario when the user selects the record to be updated , this event is firing. Also I have observed this this.gridGroupingControl.SourceListListChanged += event is costly..I mean this event fires in few other places where also. Can you suggest some best event for this requirenment..? Thanks, Prathima

Administrator [Syncfusion]
Replied On August 10, 2005 01:13 PM UTC

Maybe you can use the grid.RecordValueChanged event to set a flag that indicates whether it is some field other than your checkbox that was changed. (You can check the e.FieldDescriptor to see what was chnaged.) Then in SurceListListChanged, you can test this flag to see if the only that that was changed was the checkbox. This means in SourceListListChanged, you can skip your code if only the bool value has changed.

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

;