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

Probelem of System.NullReferenceException

Thread ID:





63886 Jul 11,2007 09:28 AM UTC Jul 12,2007 08:51 PM UTC ASP.NET Web Forms (Classic) 3
Tags: Grouping
Yarius Yacinus
Asked On July 11, 2007 09:28 AM UTC


I have a problem with GGC component ,when I start the page I get this exception System.NullReferenceException and error message :object not defined as any instance of object.
How to fix this problem


Gokul B [Syncfusion]
Replied On July 11, 2007 09:18 PM UTC

Hi Yacinus,

Thanks for posting us your query.

We can able to reproduce the issue as in attached image. If this is an issue, could you please try the below code snippet and Let us know.

//Maintains the GridGroupingControl's viewstate on PostBack


If this is not a case, could you please update us the steps to reproduce the issue and also please update us with the sample which causes this issue. It will help us to sort out the issue earlier.

Thanks for using Syncfusion product.

Gokulkumar B

Yarius Yacinus
Replied On July 12, 2007 09:38 AM UTC

Hi Gellukmar

Thanks for your answer,the problem is that the Grid grouping conrol1 does not contain a definition for 'DataSourceCatchingMode'

For information I have the version of syncfusion


Gokul B [Syncfusion]
Replied On July 12, 2007 08:51 PM UTC

Hi Yacinus,

Thanks for your update.

We are able to reproduce the issue only when the GridGroupingControl is binded in Page_load event. Since in our GridGroupingControl viewstate was not get maintained for subsequest postback/callback when it is binded in Page_Load event. This issue has been fixed in our Latest release by adding a new property named "DataSourceCachingMode" for GridGroupingControl.

To get rid of this issue you have to bind the GridGroupingControl in Page_Init event itself.In the meantime, please refer to the below forum thread where similar viewstate issue is discussed.


Try this and let us know if it helps.

Gokulkumar B


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

or the page will be automatically redirected to 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