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)>
<ImmutableObjectAttribute(True)>
<DesignerSerializerAttribute(Syncfusion.Windows.Forms.Grid.GridBorderCodeDomSerializer, System.ComponentModel.Design.Serialization.CodeDomSerializer)>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
<TypeConverterAttribute(Syncfusion.Windows.Forms.Grid.GridBorderConverter)>
<SerializableAttribute()>
Public NotInheritable Class GridBorder 
'Usage
 
Dim instance As GridBorder
[MergableProperty(true)]
[ImmutableObject(true)]
[DesignerSerializer(Syncfusion.Windows.Forms.Grid.GridBorderCodeDomSerializer, System.ComponentModel.Design.Serialization.CodeDomSerializer)]
[RefreshProperties(RefreshProperties.Repaint)]
[TypeConverter(Syncfusion.Windows.Forms.Grid.GridBorderConverter)]
[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: 18.1460.0.52

See Also