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.
Unfortunately, activation email could not send to your email. Please try again.

GGC - Group Expanding While Adding Column, And Performance Issues

Thread ID:

Created:

Updated:

Platform:

Replies:

48599 Aug 31,2006 03:05 AM Aug 31,2006 07:57 AM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On August 31, 2006 03:05 AM

Hi,

I have attached a sample with a strange behavior. I have a GGC with multiple groups. Now when I expand for example the first and the last group and click on the "Add Column" button. Then the first group gets collapsed.

How can I avoid this?

Another thing which seems a little bit annoying is, if I have a large grid with a huge amount of records (with some nice effects like colored rows etc.) then the application resize is very slow - is this a general .NET issue or is this because of the grid? Are there any performance boost options?

Cheers,
Chris

NestedTable.zip

Administrator [Syncfusion]
Replied On August 31, 2006 05:31 AM

Hi Chris,

Issue 1: Collapse the group.

You can use the GroupExpanded and GroupCollapsed events to save the status ( i.e., expanded or collapsed ) by saving the record index in a hashtable before the change. And after the change the list( i.e., Rows or columns added ), you could try expanding the required records depend on the mappings in the hashtable.

You can expand or collapse a particular Group by using this code snippet

this.gridGroupingControl1.Table.Records[5].ParentGroup.IsExpanded = true;

In order to access a particular group record, you can follow this sample code snippet.

int cnt = this.gridGroupingControl1.Table.TopLevelGroup.Groups["row6 col1"].Records.Count;
Record f = this.gridGroupingControl1.Table.TopLevelGroup.Groups["row6 col1"].Records[0];
Record l = this.gridGroupingControl1.Table.TopLevelGroup.Groups["row6 col1"].Records[cnt-1];

For more details, please refer to our Evalution center
http://www.syncfusion.com/support/EvaluationCenter/default.aspx?cNode=5 =>GridGroupingControl Groups & Records

Issue 2: Are there any performance boost options?

Yes. Please refer this thread.

http://www.syncfusion.com/Support/forums/message.aspx?MessageID=34232

Let me know if this helps.
Regards,
Haneef

Administrator [Syncfusion]
Replied On August 31, 2006 07:57 AM

Hi Haneef,

thank you for your suggestions. I have taken a closer look at the recommended thread about the perfomance boost option. I am not really sure, but I think it''s more a CPU time problem instead of a memory issue. Nevertheless my CPU is a 3.0GHz P4 so I think this shouldn''t be the problem (at least at the hardware side). When I try to resize my application I have a 100% CPU usage (just for the time the resize takes)

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.

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.

;