Syncfusion.Grid.Windows
Members  Example 


GridBorder Class

Defines and implements the immutable class that holds formatting information for individual borders of a cell.
Syntax
'Declaration
 
<MergablePropertyAttribute(True)>
<DesignerSerializerAttribute(SerializerTypeName="Syncfusion.Windows.Forms.Grid.GridBorderCodeDomSerializer, Syncfusion.Grid.Windows, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89", SerializerBaseTypeName="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>
<TypeConverterAttribute("Syncfusion.Windows.Forms.Grid.GridBorderConverter, Syncfusion.Grid.Windows, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89")>
<ImmutableObjectAttribute(True)>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<SerializableAttribute()>
Public NotInheritable Class GridBorder 
'Usage
 
Dim instance As GridBorder
[MergableProperty(true)]
[DesignerSerializer(SerializerTypeName="Syncfusion.Windows.Forms.Grid.GridBorderCodeDomSerializer, Syncfusion.Grid.Windows, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89", SerializerBaseTypeName="System.ComponentModel.Design.Serialization.CodeDomSerializer, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[TypeConverter("Syncfusion.Windows.Forms.Grid.GridBorderConverter, Syncfusion.Grid.Windows, Version=17.3460.0.14, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89")]
[ImmutableObject(true)]
[RefreshProperties(RefreshProperties.Repaint)]
[Serializable()]
public sealed class GridBorder 
Remarks
You can assign GridBorder objects to individual borders of a GridStyleInfo.Borders object in a GridStyleInfo object.

The GridBordersInfo class lets you assign a different GridBorder to each GridBorderSide.

GridBorder is serializable and ToString and IFormattable are implemented.

Example
The following code changes border information for cells: The following code hides grid lines for specific cells:
GridBorder border = new GridBorder(GridBorderStyle.Solid, Color.FromArgb(57, 73, 122));
model[rowIndex, colIndex].Borders.Bottom = border;
model[rowIndex, colIndex].Borders.Right = border;
GridBorder border = new GridBorder(GridBorderStyle.None);
model[rowIndex, colIndex].Borders.Bottom = border;
model[rowIndex, colIndex].Borders.Right = border;
Inheritance Hierarchy

System.Object
   Syncfusion.Windows.Forms.Grid.GridBorder

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.14

See Also