BaseOptionsView.AutoScaleBands Property
Gets or sets whether bands are stretched to occupy the entire control.
Namespace: DevExpress.XtraVerticalGrid
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
Declaration
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool AutoScaleBands { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | true if bands are stretched to occupy the entire control; otherwise, false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to AutoScaleBands |
---|---|
VGridControlBase |
|
Remarks
If the AutoScaleBands option is disabled, the VGridControlBase.RowHeaderWidth and VGridControlBase.RecordWidth properties specify the width of Row Headers and Records, respectively, in absolute values. The VGridControlBase.BandWidth property will return the sum of these values.
If the AutoScaleBands property is enabled, the row headers and the current record are stretched to fit the control width. In this case, the VGridControlBase.BandWidth property always returns a constant value of 200. The VGridControlBase.RowHeaderWidth and VGridControlBase.RecordWidth properties now specify proportional widths, and their sum is always equal to 200. These properties cannot be set to values less than the VGridControlBase.RowHeaderMinWidth and VGridControlBase.RecordMinWidth.