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.

GDBG There is no row at position 0

Thread ID:

Created:

Updated:

Platform:

Replies:

43644 Apr 27,2006 10:32 PM Apr 28,2006 12:30 AM Windows Forms 1
loading
Tags: GridControl
Jason Talaban
Asked On April 27, 2006 10:32 PM

My problem is this: I have a grid loaded with data from a database that happens to have no data in it. I add a new row to the grid, but then I decide to undo my changes and reload from the database again. I do this with an undo button which will reload the dataset from the database and set the grid.datasource = new dataview. I then get the following error. System.IndexOutOfRangeException: There is no row at position 0. at System.Data.DataView.GetRecord(Int32 recordIndex) at System.Data.DataView.IsOriginalVersion(Int32 index) at System.Data.DataRowView.SetColumnValue(DataColumn column, Object value) at System.Data.DataColumnPropertyDescriptor.SetValue(Object component, Object value) at Syncfusion.Windows.Forms.Grid.GridModelDataBinder.EndEdit() at Syncfusion.Windows.Forms.Grid.GridDataBoundGrid.EndEdit() catched at Syncfusion.Windows.Forms.Grid.GridDataBoundGrid.EndEdit() in :line 0 An unhandled exception of type ''System.IndexOutOfRangeException'' occurred in system.data.dll Please help me, thanks.

Administrator [Syncfusion]
Replied On April 28, 2006 12:30 AM

Hi, Since not able to reproduce the issue here, I have attached a sample. If you can see the issue in the attached sample let me know the version of the Grid that you are using, if not please reproduce the issue in the attached sample and send us back so that we can get back soon with a solution. Regards, Calvin.

43644.zip

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.

;