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.

Probelem of System.NullReferenceException

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hello,

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

Yacinus

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

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
this.GridGroupingControl1.DataSourceCachingMode=DataSourceCachingMode.ViewState

GridGroupingControl_Issue

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.

Regards,
Gokulkumar B

Yarius Yacinus
Replied On July 12, 2007 05:38 AM

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 4.2.0.37 of syncfusion

Regards
Yacinus

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

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 5.1.0.51 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.

http://www.syncfusion.com/support/Forums/message.aspx?&MessageID=51399

Try this and let us know if it helps.

Regards,
Gokulkumar B

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.

;