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.
ADAdministrator Syncfusion Team April 29, 2004 09:21 AM UTC
On an XP system with grid.ThemesEnabled = true, you get a ''flat'' XP look.
But if this is not what you want, you will have to set particular properties to flatten different parts of teh grid. Here is a try at this.
//set grid borderstyle
this.gridDataBoundGrid1.BorderStyle = BorderStyle.FixedSingle;
//make headers be static cells to avoid raised drawing
this.gridDataBoundGrid1.BaseStylesMap["Header"].StyleInfo.CellType = "Static";
this.gridDataBoundGrid1.BaseStylesMap["Column Header"].StyleInfo.CellType = "Static";
this.gridDataBoundGrid1.BaseStylesMap["Row Header"].StyleInfo.CellType = "Static";
//set the header borders to draw
GridStyleInfo style = new GridStyleInfo();
GridBorder gb = new GridBorder(GridBorderStyle.Solid, SystemColors.ControlDark);
style.Borders.Bottom = gb;
style.Borders.Right = gb;
this.gridDataBoundGrid1.BaseStylesMap["Header"].StyleInfo.ModifyStyle(style, Syncfusion.Styles.StyleModifyType.Override);
this.gridDataBoundGrid1.BaseStylesMap["Column Header"].StyleInfo.ModifyStyle(style, Syncfusion.Styles.StyleModifyType.Override);
this.gridDataBoundGrid1.BaseStylesMap["Row Header"].StyleInfo.ModifyStyle(style, Syncfusion.Styles.StyleModifyType.Override);
//set the borders for all non header cells...
this.gridDataBoundGrid1.Model.Options.DefaultGridBorderStyle = GridBorderStyle.Solid;
ADAdministrator Syncfusion Team April 29, 2004 10:56 AM UTC