The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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;
ADAdministrator 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
LMLan 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
>
>
ADAdministrator 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;