System.Windows.Forms.DataGrid.BackColor Property

Gets or sets the background color of even-numbered rows of the grid.

Syntax

public override System.Drawing.Color BackColor { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Whereas the DataGrid.BackColor property determines the color of rows in the grid, the DataGrid.BackgroundColor determines the color of the nonrow area, which is only visible when the grid is scrolled to the bottom, or if only a few rows are contained in the grid.

By default, both the DataGrid.BackColor and the DataGrid.AlternatingBackColor properties are set to the same color. Setting the DataGrid.BackColor property affects only even-numbered rows, while setting the DataGrid.AlternatingBackColor affects only odd-numbered rows.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0