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

Throws GridGroupingControl.TableControl.Selections.Ranges NullReferenceException?

Thread ID:





92817 Feb 5,2010 12:44 PM UTC Feb 10,2010 03:08 PM UTC WinForms 3
Tags: GridControl
Asked On February 5, 2010 12:44 PM UTC


is it possible that the GridGroupingControl.TableControl.Selections.Ranges.Clear throws a NullReferenceException?
If yes when could it happen?

Best Regards

Jisha Joy [Syncfusion]
Replied On February 8, 2010 04:24 AM UTC

Hi Plotnikova,

Could you please provide some more details about the problem you are facing?


Replied On February 8, 2010 02:38 PM UTC

Hi Jisha,

I've found a problem.
We use many grids. And if the one "special" grid was loaded, all other grids where the source has 0 items couln't be desplayed at all.

The problem was the in the contructor of this "special grid" was the following code:
GridEngineFactory.Factory = new GroupingEngineFactory();

I'have just deleted this line of code and the problem was resolved.
Could you tell me please what is the purpose of Factory. And what is the right way to use it?

Best Regards.

Rajadurai C [Syncfusion]
Replied On February 10, 2010 03:08 PM UTC

Hi Plotnikova,

Thanks for your update.

The code,
GridEngineFactory.Factory = new GroupingEngineFactory();

is preferred to be added in Form' constructor method before intializing the grid, when there is a custom engine need to be binded to grid.

GridGroupingControl had its default engine. If you want some sections or elements to displayed in the required order or set rowheight for any elements at runtime, you can go for the CustomEngine.

The GridEngineFactory.Factory method lets you assign an object of the custom engine at the application level. Hence, the custom engine settings get applied for all the grids in one application.

You can refer to our browser samples "Grid Grouping samples -> Grouping -> Custom Section In Group Demo" and "Grid Grouping samples -> Grouping Grid Layout -> Resizable Rows Demo" shipped with Syncfusion Dashboard where custom engine has been used for achieving certain requirements.



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