I used following code to set the header for 40 columns, it takes about 1.17second.
Any idea to speed up?
// this cost 1.17sec for 40 fields
ADAdministrator Syncfusion Team June 23, 2005 04:10 PM
Are you doing anything else in your loop? Here is a sampl ethat sets 40 headers in about 50 milliseconds for me.
LMLan Mo June 26, 2005 01:15 PM
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
>Are you doing anything else in your loop? Here is a sampl ethat sets 40 headers in about 50 milliseconds for me.
ADAdministrator Syncfusion Team June 26, 2005 03:34 PM
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;