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

Object reference not set to an instance of an object.

Thread ID:





92011 Dec 14,2009 10:59 AM UTC Dec 17,2009 03:27 PM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Sateesh Jain
Asked On December 14, 2009 10:59 AM UTC


I have a GridGrouping Control in a WebUsercontrol. There is a ControlTemplate Column which contains a button to navigate to next page. I have to use SelectedRecordsChanged Event to display some information. But when i change the record first time it works, then it gives error Object reference not set to an instance of object. I have attached sample of the same herewith.
Can i get what's the wrong. It's Urgent.




Bharath M [Syncfusion]
Replied On December 17, 2009 03:27 PM UTC

Hi Sateesh,

Thank you for your interest in Syncfusion products.

We suggest you to raise your UpdateFooter event only after checking that it is not Null. In your sample, your UserControl's grdDispLay_SelectedRecordsChanged function called before Page_Load event raise. But you are assigning value to UpdateFooter event on Page_Load event only. We suggest you to add additional condition to check updateFooter is not null.

Let me know if you have any concerns.

Bharath .M


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