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. Image for the cookie policy date
close icon

Object reference not set to an instance of an object.


Hi

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.

Regards

Sateesh.







RDSTest_cda1ae1d.zip

1 Reply

BM Bharath M Syncfusion Team 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.

Regards,
Bharath .M

Loader.
Live Chat Icon For mobile
Up arrow icon