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.

There is no row at position 0

Thread ID:

Created:

Updated:

Platform:

Replies:

16833 Jul 26,2004 05:05 AM Jul 26,2004 05:34 AM Windows Forms 2
loading
Tags: GridControl
Rabeek Ahamed
Asked On July 26, 2004 05:05 AM

I am getting the follwoing problem "There is no row at position 0" This is happening after i have clear my dataset dataset1.tables[0].rows.clear; but the focus is still on the grid. when the focus is lost from the grid, this error is coming to me. I am not able to locate this problem where it raise. The row position also varying!!! Can you please help me on this? Please reply me ASAP. urgent

Administrator [Syncfusion]
Replied On July 26, 2004 05:19 AM

Is there an open edit going on when you try to zap your DataTable? If so, you might try calling grid.CurrentCell.CancelEdit(); grid.Binder.EndEdit(); before you clear things. If that does not resolve the problem, you might try setting grid.BindingContext[grid.DataSource, grid.DataMember].Position = -1; before clearing your table. You could also try calling grid.CurrentCell.MoveTo(-1, -1);

Administrator [Syncfusion]
Replied On July 26, 2004 05:34 AM

Thank you very much for your fast and efficient response. This reply helped me lot. Thanks.

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.

;