Edit this page

Styling and Appearance

RadVirtualGrid is designed to handle huge amounts of data while keeping its performance and overall user experience intact. Thus, the control does not utilize the common templating mechanism provided by WPF and does not add its visual elements to the visual tree. It provides a set of properties for customizing its appearance.

  • Background: Sets the Background of the cell.

  • Foreground: Sets the Foreground of the cell.

  • ColumnWidth: Sets the Width of the Columns. The property is of type double.

  • RowHeight: Sets the Height of the Rows. The property is of type double.

  • ColumnHeaderHeight: Sets the Height of the Column Headers. The property is of type double.

  • RowHeaderWidth: Sets the Width of the Row Headers. The property is of type double.

  • LinesVisibility: This property controls the way lines of the grid are visualized. It is an enumeration that has four values to choose from: Both, Horizontal, Vertical and None.

  • FontFamily: Sets the FontFamily of the cell.

  • FontSize: Sets the FontSize of the cell content.The property is of type double.

The styling options of the control support applying Brushes to various of its elements. They are described in the following figure.

Figure 1: RadVirtualGrid's Visual Elements

RadVirtualGrid's Visual Elements

The full set of properties is listed below.

  • HorizontalLinesBrush

  • VerticalLinesBrush

  • RowHeaderBackground

  • PinnedRowHeaderBackground

  • PinnedRowHeaderBackground

  • RowHeaderForeground

  • ColumnHeaderForeground

  • CurrentCellStroke

  • PinnedCellBackground

  • PinnedCellForeground

  • RowHeaderLinesBrush

  • ColumnHeaderLinesBrush

See also