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

CurrentCell.MoveTo

Thread ID:

Created:

Updated:

Platform:

Replies:

13613 May 4,2004 12:01 PM UTC May 4,2004 02:43 PM UTC WinForms 2
loading
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.

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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;