BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
//first code block Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle1 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle(); Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle2 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle(); Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle3 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle(); Syncfusion.Windows.Forms.Grid.GridBaseStyle gridBaseStyle4 = new Syncfusion.Windows.Forms.Grid.GridBaseStyle(); //second code block gridBaseStyle1.Name = "Header"; gridBaseStyle1.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None); gridBaseStyle1.StyleInfo.Borders.Left = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None); gridBaseStyle1.StyleInfo.Borders.Right = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None); gridBaseStyle1.StyleInfo.Borders.Top = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.None); gridBaseStyle1.StyleInfo.CellType = "Header"; gridBaseStyle1.StyleInfo.Font.Bold = true; gridBaseStyle1.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(192)))); gridBaseStyle1.StyleInfo.VerticalAlignment = Syncfusion.Windows.Forms.Grid.GridVerticalAlignment.Middle; gridBaseStyle2.Name = "Column Header"; gridBaseStyle2.StyleInfo.BaseStyle = "Header"; gridBaseStyle2.StyleInfo.CellType = "ColumnHeaderCell"; gridBaseStyle2.StyleInfo.Enabled = false; gridBaseStyle2.StyleInfo.Font.Bold = false; gridBaseStyle2.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Center; gridBaseStyle3.Name = "Row Header"; gridBaseStyle3.StyleInfo.BaseStyle = "Header"; gridBaseStyle3.StyleInfo.CellType = "RowHeaderCell"; gridBaseStyle3.StyleInfo.Enabled = true; gridBaseStyle3.StyleInfo.HorizontalAlignment = Syncfusion.Windows.Forms.Grid.GridHorizontalAlignment.Left; gridBaseStyle4.Name = "Standard"; gridBaseStyle4.StyleInfo.CheckBoxOptions.CheckedValue = "True"; gridBaseStyle4.StyleInfo.CheckBoxOptions.UncheckedValue = "False"; gridBaseStyle4.StyleInfo.Interior = new Syncfusion.Drawing.BrushInfo(System.Drawing.SystemColors.Window); this.gridDataBoundGrid1.BaseStylesMap.AddRange(new Syncfusion.Windows.Forms.Grid.GridBaseStyle[] { gridBaseStyle1, gridBaseStyle2, gridBaseStyle3, gridBaseStyle4});