Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

NuGet Package: DevExpress.Win.Navigation

#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