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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GDBG There is no row at position 0

Thread ID:

Created:

Updated:

Platform:

Replies:

43644 Apr 28,2006 02:32 AM UTC Apr 28,2006 04:30 AM UTC WinForms 1
loading
Tags: GridControl
Jason Talaban
Asked On April 28, 2006 02:32 AM UTC

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 04:30 AM UTC

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.

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

;