Gets a default appearance of even Rows

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public Appearance OddRows { get; set; }
Visual Basic
Public Property OddRows As Appearance
	Get
	Set
Visual C++
public:
property Appearance^ OddRows {
	Appearance^ get ();
	void set (Appearance^ value);
}
F#
member OddRows : Appearance with get, set

Property Value

Type: Appearance
The appearance.

Examples

 Copy imageCopy
public void CellAppearance(Grid grid)
{
    grid.Rows.Add(new Product());
    Row row = grid.Rows[0];

    //Set appearance for even and odd rows on all hierarchical levels
    grid.Appearance.EvenRows.BackColor = Color.Gray;
    grid.Appearance.OddRows.BackColor = Color.Black;

    //Set appearance for even and odd rows on the top hierarchical level
    grid.Headers[0].Appearance.EvenRows.BackColor = Color.Gray;
    grid.Headers[0].Appearance.OddRows.BackColor = Color.Black;

    //Set a back color for the cell
    row["Price"].Appearance.BackColor = Color.Green;
}

See Also