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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl: Record Count Change Event?

Thread ID:

Created:

Updated:

Platform:

Replies:

76993 Oct 6,2008 01:17 AM UTC Feb 6,2009 02:17 PM UTC WinForms 7
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 6, 2008 01:17 AM UTC

Hi there,

Is there any specific event that gets fired when the number of displayed records is changing in GridGroupingControl?

I guess the number of displayed records can change if:
a. the binding data source changes (being added, deleted or reset)
or
b. the grid changes its row filter

I tried SourceListListChanged, but this only work for (a) and not (b).
SourceListListChanged and SourceListListChanged don't work at all.

Any ideas? thanks :)


Jisha Joy [Syncfusion]
Replied On October 7, 2008 12:26 PM UTC

Hi,

Please try to handle TableSourceListChanged event of GridGroupingControl.

Please refer the code:



this.gridGroupingControl1.TableSourceListChanged += new Syncfusion.Grouping.TableEventHandler(gridGroupingControl1_TableSourceListChanged);
void gridGroupingControl1_TableSourceListChanged(object sender, Syncfusion.Grouping.TableEventArgs e)
{
Console.WriteLine("Fired");
}


Please try this and let me know if this helps.

Regards,
Jisha




Administrator [Syncfusion]
Replied On October 8, 2008 06:18 AM UTC

Hi Jisha,

Tried hooking up to the TableSourceListChanged, but it only gets fired once in the beginning.

It doesnt get called whenever the data source changes (like being reset).




Jisha Joy [Syncfusion]
Replied On October 9, 2008 09:39 AM UTC

Hi,


Please try to handle SourceListListChanged event, that will fire when record is added or deleted in grid:

this.gridGroupingControl1.SourceListListChanged += new TableListChangedEventHandler(gridGroupingControl1_SourceListListChanged);


void gridGroupingControl1_SourceListListChanged(object sender, TableListChangedEventArgs e)
{
Console.WriteLine("Modified");
}

Regards,
Jisha


Administrator [Syncfusion]
Replied On October 10, 2008 09:04 AM UTC

Hi again Jisha :)

As I mentioned in first thread, I tried SourceListListChanged.
This works when the binding data source changes (being added, deleted or reset)

But NOT when the grid changes its row filter, as row filter changes might also change the displayed record count.

I don't mind using SourceListListChanged.

But do you know other event that gets fired when the grid changes its row filter?

Thanks :)


Jisha Joy [Syncfusion]
Replied On October 16, 2008 09:06 AM UTC

Hi,

Sorry for the delay in getting back to this issue.

To catch a filter in the GridGroupingControl, you can try either of these events.

this.gridGroupingControl1.TableDescriptor.RecordFilters.Changing
this.gridGroupingControl1.TableDescriptor.RecordFilters.Changed


Regards,
Jis


Administrator [Syncfusion]
Replied On October 20, 2008 05:46 AM UTC

Thanks Jisha! Will give it a try :)


Sameer Khan
Replied On February 6, 2009 02:17 PM UTC

The above events are fired when new filter criterias are being added. Not when the View Set changes.

Is there a way to determine if the number of elements in the set changed.

-S




>Thanks Jisha! Will give it a try :)




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

;