Skip to main content

Style

The Grid dashboard item allows you to specify various style settings.

To do this, use the Style group in the Design Ribbon tab of the Grid Tools contextual tab set.

Grid_RibbonStyleGroup

Grid Lines

The Horizontal Lines and Vertical Lines buttons control grid line visibility.

Grid_Layout_NoLinesAndHeaders

In code, use the GridOptions.ShowHorizontalLines and GridOptions.ShowVerticalLines properties, respectively.

Banded Rows

To paint the background of odd and even rows differently, use the Banded Rows button.

Grid_Layout_BandedRows

Note

Note that banded rows are not available when cell merging is enabled.

In code, use the GridOptions.EnableBandedRows property.