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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





13613 May 4,2004 12:01 PM UTC May 4,2004 02:43 PM UTC WinForms 2
Tags: GridControl
Greg Wright
Asked On May 4, 2004 12:01 PM UTC

Why would CurrentCell.MoveTo be throwing a ''Object reference not set to an instance of an object.'' exception? I am doing a Rows.InsertRange(1, 1) and then trying to do a MoveTo(1, 1).

Administrator [Syncfusion]
Replied On May 4, 2004 01:15 PM UTC

Are you working with a GridControl? (For a GridDataBoundBound, you would add rows to the DataSource, an dnot use Rows.Insert). You might try calling grid.CurrentCell.EndEdit just to make sure you do not have an open edit before you call Insert. Can you post the CallStack when the exception is thrown? That might give some hints as to why something is null.

Greg Wright
Replied On May 4, 2004 02:43 PM UTC

I found the problem Clay. Thanks for the quick reply.


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

Live Chat Icon For mobile
Live Chat Icon