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

Grid Grouping Control crashes

Thread ID:





99395 May 18,2011 02:12 PM UTC May 23,2011 07:11 AM UTC WinForms 4
Tags: Grouping
Christian Rattat
Asked On May 18, 2011 02:12 PM UTC


I have a ggc with a table and nested table where I use grouping and filtering. The data in the table is a derived dataset. On the parent table I have a checkbox in each row to select specific rows for further actions.

When I filter the data so that the visible rows will change I need to unset those checkboxes in all rows to ensure that now hidden rows are still selected. To do so I implemented the


event. Here I set the boolean field to false using this code:

DataTable dt = (grid.DataSource as journalDataSet).Tables["TJOURNALS"];

foreach (DataRow dr in dt.Select("TBOCHECKED = true"))
dr["TBOCHECKED"] = "false";

It seems that during the recordfilterchanged event modifying the datasource makes the grid crash. If I remove this code it works fine. The crash occurs in the OnPaint method of the grid and the entire grid area appears empty with red lines crossing.

We use version now. In previous releases we used version 4.2 and there it worked fine.

How do I get this working again? Is there a different event where I'll be notified that the filters have changed that I can use without getting this crash? I need this urgently as we are close to releasing our next version.

Thanks in advance,

Christian Rattat
Replied On May 19, 2011 06:42 AM UTC


I checked some further things. In the filterbar I hide the "custom" selection using the sample you provide. If I remove the entire code hiding custom from the filterbar it also works.


Christian Rattat
Replied On May 19, 2011 08:08 AM UTC


made it reproducible with the modified filterbar sample. The problem is the performance optimizations you sent me in another thread.

If you take out these lines, it works fine:

this.gridGroupingControl1.InvalidateAllWhenListChanged = false;
this.gridGroupingControl1.AllowedOptimizations = Syncfusion.Grouping.EngineOptimizations.All;
this.gridGroupingControl1.CounterLogic = Syncfusion.Grouping.EngineCounters.YAmount;
this.gridGroupingControl1.UseDefaultsForFasterDrawing = true;
this.gridGroupingControl1.TableOptions.ColumnsMaxLengthStrategy = GridColumnsMaxLengthStrategy.FirstNRecords;
this.gridGroupingControl1.TableOptions.ColumnsMaxLengthFirstNRecords = 50;
this.gridGroupingControl1.Engine.CacheRecordValues = false;
this.gridGroupingControl1.UseLazyUniformChildListRelation = true;

Just run the application together with the datasource from your samples. Filter by first columns a couple times by different values. After 2-3 times the applications hangs, the filterbar text remains empty.

I need these performance improvements as in the grid our customers will load between 100 and 100000 (and more) rows with each 2-10 eembedded rows in the nested tables.



Christian Rattat
Replied On May 19, 2011 08:24 AM UTC

Forgot to mention that we use VS2010/Net Framework 4.

Jisha Joy [Syncfusion]
Replied On May 23, 2011 07:11 AM UTC

Hi Christian,

Your Direct trac incident 80596 for the same query has been updated. Please follow up with it.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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