Gets or sets the column scroll type.

Namespace: Dapfor.Wpf.Controls
Assembly: Dapfor.Wpf (in Dapfor.Wpf.dll) Version: 4.1.0.26317 (4.1.0.26317)

Syntax

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

Property Value

Type: ColumnScrollType
The column scroll type.

Remarks

 Copy imageCopy
public void ColumnScrollBehaviour(GridControl grid)
{
    //Add a new header on the top hierarchical level (level 0)
    Header header = new Header();
    header.Add(new Column("Name"));
    header.Add(new Column("Price"));
    header.Add(new Column("Quantity"));
    grid.Headers.Add(header);

    //Stretch columns to the header's width
    grid.Headers[0].ScrollType = ColumnScrollType.Stretch;
}

See Also