Spread WPF Documentation
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / ShowGridLine Property
Example


In This Topic
    ShowGridLine Property (Worksheet)
    In This Topic
    Determines whether to show gridlines.
    Syntax
    'Declaration
     
    <DefaultValueAttribute(True)>
    Public Property ShowGridLine As Boolean
    'Usage
     
    Dim instance As Worksheet
    Dim value As Boolean
     
    instance.ShowGridLine = value
     
    value = instance.ShowGridLine
    [DefaultValue(true)]
    public bool ShowGridLine {get; set;}
    Example
    This example sets the ShowGridLine property.
    gcSpreadSheet1.Sheets[0].ShowGridLine = true;
    gcSpreadSheet1.Sheets[0].GridLineColor = Color.FromRgb(150, 25, 199);
    gcSpreadSheet1.Invalidate();
    GcSpreadSheet1.Sheets(0).ShowGridLine = True
    GcSpreadSheet1.Sheets(0).GridLineColor = Color.FromRgb(150, 25, 199)
    GcSpreadSheet1.Invalidate()
    See Also