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.

Essential Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

44758 Jun 2,2006 05:24 AM Jun 2,2006 08:58 AM Windows Forms 3
loading
Tags: GridControl
Shashidhara
Asked On June 2, 2006 05:24 AM

Hi, I am binding ArrayList as a data source to the grid. After deleting row from the grid, if i select another tab and scroll on grid following error is occured. Error : An unhandled exception of type ''System.ArgumentOutOfRangeException'' occurred in mscorlib.dll Additional information: Index was out of range. Must be non-negative and less than the size of the collection.

Administrator [Syncfusion]
Replied On June 2, 2006 06:28 AM

Hi Shashidhara, An arbitrary ArrayList DataSource does not fire any events to notify any changes. In such cases, you would have to explicitly call grid.Refresh after the arraylist changes. Try calling this.gridDataBoundGrid1.Refresh(); after the array list changes. Regards, Calvin.

Shashi
Replied On June 2, 2006 06:38 AM

Hi, Calvin Here i am sending code. pls Check whether it is correct .. rateTablesGrid.BeginUpdate(); rateTablesGrid.Binder.SuspendBinding(); ELActions.DeleteResource(FCurrentResource); rateTablesGrid.Refresh(); rateTablesGrid.Binder.ResumeBinding(); if(rateTablesGrid.CurrentCell.RowIndex > ELActions.CurrentProject.OtherResourceList.Count) { rateTablesGrid.CurrentCell.MoveTo(1, 1); } else { rateTablesGrid.CurrentCell.MoveTo(rateTablesGrid.CurrentCell.RowIndex, 1); } rateTablesGrid.EndUpdate(true); rateTablesGrid.Refresh(); After deleting row from grid if i select another tab where iam using same list to bind grid (Filter method is used) if i scroll out of index exception throwing. Regards shashidhar D >Hi Shashidhara, > >An arbitrary ArrayList DataSource does not fire any events to notify any changes. In such cases, you would have to explicitly call grid.Refresh after the arraylist changes. Try calling this.gridDataBoundGrid1.Refresh(); after the array list changes. > >Regards, >Calvin.

Administrator [Syncfusion]
Replied On June 2, 2006 08:58 AM

Hi Shashi, Please refer to the below forum thread for more details. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=44766 Best Regards, Haneef

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.

;