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.
I am running into some SEVERE performance problems on updateing the styles (Fonts, colors, etc) for a GridControl. Here is a snapshot of most of the offending code:
this.syncFusionGrid.IgnoreReadOnly=true;
this.syncFusionGrid.BeginUpdate();
foreach(int key in columnPrefs.Keys)
{
ColumnPreferences uP= ((ColumnPreferences)columnPrefs[key]);
this.syncFusionGrid[0,(int)this.updateHandler.columnIndex[key]].CellValue=uP.Header;
for(int i=1; i< this.syncFusionGrid.RowCount+1;i++)
{
//Nyumber format
this.syncFusionGrid[i,(int)this.updateHandler.columnIndex[key]].Format=uP.NumberFormat;
this.syncFusionGrid[i,(int)this.updateHandler.columnIndex[key]].CellValueType=typeof(double);
//GridFont
this.syncFusionGrid[i,(int)this.updateHandler.columnIndex[key]].TextColor=uP.GridFontColor;
if(uP.GridFont!=null)
this.syncFusionGrid[i,(int)this.updateHandler.columnIndex[key]].Font=new Syncfusion.Windows.Forms.Grid.GridFontInfo(uP.GridFont);
if(uP.HeaderFont!=null)
this.syncFusionGrid[0,(int)this.updateHandler.columnIndex[key]].Font=new Syncfusion.Windows.Forms.Grid.GridFontInfo(uP.HeaderFont);
this.syncFusionGrid[0,(int)this.updateHandler.columnIndex[key]].TextColor=uP.HeaderFontColor;
//justification
if(uP.Justification==ColumnPreferences.JustifyEnum.Right)
this.syncFusionGrid.ColStyles[(int)this.updateHandler.columnIndex[key]].HorizontalAlignment=Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Right;
else if(uP.Justification==ColumnPreferences.JustifyEnum.Left)
this.syncFusionGrid.ColStyles[(int)this.updateHandler.columnIndex[key]].HorizontalAlignment=Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Left;
else
this.syncFusionGrid.ColStyles[(int)this.updateHandler.columnIndex[key]].HorizontalAlignment=Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Center;
}
this.syncFusionGrid.EndUpdate(); this.syncFusionGrid.IgnoreReadOnly=false;