System.Windows.Forms.DataGrid.AlternatingBackColor Property

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

Syntax

public System.Drawing.Color AlternatingBackColor { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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