Skip to main content

RetrieveFieldsParameters.ColumnCount Property

Gets or sets the number of columns in the layout that will be generated.

Namespace: DevExpress.XtraDataLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

Declaration

public int ColumnCount { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the number of columns in the layout that will be generated.

Remarks

Setting the ColumnCount property to a value greater than the number of public fields in the underlying data source is not in effect.

Consider a sample business object to which a Data Layout Control is bound.

public class Address {
    public string City { get; set; }
    public string Country { get; set; }
    public string Phone { get; set; }
}

A call to the DataLayoutControl.RetrieveFields method with the ColumnCount parameter set to 2 generates the following layout:

DataLayoutControl-RetrieveFields-ColumnCount2

If the ColumnCount parameter is set to 3, the layout is generated as follows:

DataLayoutControl-RetrieveFields-ColumnCount3

See Also