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

Fastest way to iterate rows

Thread ID:





39625 Jan 13,2006 05:11 AM UTC Jan 24,2006 04:08 PM UTC WinForms 5
Tags: GridControl
Asked On January 13, 2006 05:11 AM UTC

What methods should I call to iterate through rows and cell values so it would fire the fewest events etc... for the fastest iteration

stanleyj [Syncfusion]
Replied On January 14, 2006 08:40 AM UTC

Hi Va, I am not sure what iteration methods you are looking for. Please refer this thread and see if that is related to your need. http://www.syncfusion.com/support/forums/message.aspx?MessageID=16755 Also refer this sample that is shipped. Syncfusion\Essential Studio\\windows\Grid.Windows\Samples\In Depth\GridPopulationSample(also available in earlier versions) Check out Invalidate and Refresh methods. Regards, Stanley

Replied On January 14, 2006 11:09 PM UTC

Sorry - I was unclear. I was wondering if calling the same functions through GridControl.Model instead of GridControl (like HideRows[], as well as Model.Data etc..) is faster because it may not fire events?

stanleyj [Syncfusion]
Replied On January 17, 2006 05:56 AM UTC

Hi Va, You can call the CurrentCell.SuspendEvents and SuspendChangeEvents before the routines. It will prevent CurrentCell events. this.gridControl1.CurrentCell.SuspendEvents(); this.gridControl1.SuspendChangeEvents(); this.gridControl1.ResumeChangeEvents(); this.gridControl1.CurrentCell.ResumeEvents(); You can directly access the GridData object instead of using an indexer on the grid. This will avoid events and probably be a factor of 5 - 10 times faster. Please refer this thread for more details. Best Regards, Stanley

Replied On January 18, 2006 12:44 PM UTC

Right. But if I use the model to also all the Model.Functions... do all counterpart Model.Functions that have the same name as GridControl.Functions ALSO not call the events?

stanleyj [Syncfusion]
Replied On January 24, 2006 04:08 PM UTC

Hi Va, If HideRows is making things slower then try grid.RowHeights.SetRange method. Grid and Grid.Model has to be the same. Regards, Stanley


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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