Partager via


GridLines Property

Determines whether horizontal and vertical lines are displayed in the Grid control. Available at design time; read/write at run time.

Grid.GridLines[ = nSetting]

Property Values

  • nSetting
    The settings for the GridLines property are:
    Setting Description
    0 None. No grid lines.
    1 Horizontal. Horizontal grid lines only.
    2 Vertical. Vertical grid lines only.
    3 (Default) Both. Both horizontal and vertical grid lines.

See Also

GridLineColor Property | GridLineWidth Property

Applies To: Grid