Gets the Appearance of the column panel.

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

Syntax

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

Property Value

Type: Appearance
The Appearance.

Examples

 Copy imageCopy
public void ColumnPanelAppearance(Grid grid)
{
    //Initialize header and columns
    Header header = new Header();
    header.Add(new Column("Name"));
    header.Add(new Column("Price"));
    header.Add(new Column("Quantity"));
    grid.Headers.Add(header);

    //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
    header.Appearance.EvenRows.BackColor = Color.Gray;
    header.Appearance.OddRows.BackColor = Color.Black;

    //Default appearance for all columns 
    header.Appearance.ColumnPanel.ForeColor = Color.Red;
    header.Appearance.ColumnPanel.BackColor = Color.LightSteelBlue;
    header.Appearance.ColumnPanel.GradientEnabled = true;
    header.Appearance.ColumnPanel.GradientDirection = GradientDirection.Vertical;
    header.Appearance.ColumnPanel.GradientEndBackColor = Color.LightGray;

    //Appearance of the column 'Price'
    header["Price"].Appearance.CaptionColor.ForeColor = Color.Yellow;
    header["Price"].Appearance.CaptionColor.BackColor = Color.SteelBlue;
    header["Price"].Appearance.CaptionColor.GradientEnabled = true;
    header["Price"].Appearance.CaptionColor.GradientDirection = GradientDirection.Vertical;
    header["Price"].Appearance.CaptionColor.GradientEndBackColor = Color.Gray;


    //Populate the grid with rows
    grid.Rows.Add(new Product());
    Row row = grid.Rows[0];

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

See Also