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.

CurrentCell.MoveTo

Thread ID:

Created:

Updated:

Platform:

Replies:

13613 May 4,2004 08:01 AM May 4,2004 10:43 AM Windows Forms 2
loading
Tags: GridControl
Greg Wright
Asked On May 4, 2004 08:01 AM

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 09:15 AM

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 10:43 AM

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

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.

;