Syncfusion.Grid.Windows
Members  Example 


GridBordersInfo Class

Defines the class that provides a GridStyleInfoSubObject object for borders in a cell. Each border side of the cell can be configured individually with a GridBorder value. Border sides that have not been initialized will inherit default values from a base style.
Object Model
GridBordersInfo ClassGridBorder ClassGridBorder ClassGridBordersInfo ClassStyleInfoIdentityBase ClassGridBorder ClassGridBorder ClassStyleInfoBase ClassGridBorder ClassStyleInfoProperty ClassStyleInfoStore ClassStyleInfoSubObjectIdentity ClassGridBorder Class
Syntax
'Declaration
 
<DefaultMemberAttribute("Item")>
<TypeConverterAttribute(Syncfusion.Styles.StyleInfoBaseConverter)>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
Public Class GridBordersInfo 
   Inherits GridStyleInfoSubObject
   Implements Syncfusion.Styles.IStyleInfo, Syncfusion.Styles.IStyleInfoSubObject 
'Usage
 
Dim instance As GridBordersInfo
[DefaultMember("Item")]
[TypeConverter(Syncfusion.Styles.StyleInfoBaseConverter)]
[RefreshProperties(RefreshProperties.Repaint)]
public class GridBordersInfo : GridStyleInfoSubObject, Syncfusion.Styles.IStyleInfo, Syncfusion.Styles.IStyleInfoSubObject  
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.Design.ShouldSerializeBasedPersisterType
      Syncfusion.Styles.StyleInfoBase
         Syncfusion.Styles.StyleInfoSubObjectBase
            Syncfusion.Windows.Forms.Grid.GridStyleInfoSubObject
               Syncfusion.Windows.Forms.Grid.GridBordersInfo

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also