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

Header text setting speed issue

Thread ID:





30788 Jun 23,2005 08:35 PM UTC Jun 26,2005 08:34 PM UTC WinForms 3
Tags: GridControl
Lan Mo
Asked On June 23, 2005 08:35 PM UTC

Hello, I used following code to set the header for 40 columns, it takes about 1.17second. Any idea to speed up? Thanks, // this cost 1.17sec for 40 fields this.gdBase.TableDescriptor.Columns[ColumnName].HeaderText=sFdesc;

Administrator [Syncfusion]
Replied On June 23, 2005 09:10 PM UTC

Are you doing anything else in your loop? Here is a sampl ethat sets 40 headers in about 50 milliseconds for me. http://www.syncfusion.com/Support/user/uploads/GGC_HeaderText_8bf3cc1d.zip

Lan Mo
Replied On June 26, 2005 06:15 PM UTC

My loop is setting up the column lookup combobox besides the setting column header. I tested my loop by comment the setting up column header line, it will save about 1.17 seconds. Is there any layout property of grid, such as suspendlayout() or beginupdate etc, could be set up? >Are you doing anything else in your loop? Here is a sampl ethat sets 40 headers in about 50 milliseconds for me. > >http://www.syncfusion.com/Support/user/uploads/GGC_HeaderText_8bf3cc1d.zip > >

Administrator [Syncfusion]
Replied On June 26, 2005 08:34 PM UTC

There are grid.BeginUpdate/grid.EndUpdate calls. You also might try setting bfore you make your changes to ss it this helps. grid.Table.TableDirty = true;


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

Live Chat Icon For mobile
Live Chat Icon