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. Image for the cookie policy date
close icon

Header text setting speed issue

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;

3 Replies

AD Administrator Syncfusion Team 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


LM Lan Mo 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 > >


AD Administrator Syncfusion Team 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;

Loader.
Live Chat Icon For mobile
Up arrow icon