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


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).

2 Replies

AD Administrator Syncfusion Team 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.

GW Greg Wright May 4, 2004 02:43 PM UTC

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

Live Chat Icon For mobile
Up arrow icon