Back to Devexpress

RetrieveFieldsParameters.ColumnCount Property

windowsforms-devexpress-dot-xtradatalayout-dot-retrievefieldsparameters-e0ce8894.md

latest2.1 KB
Original Source

RetrieveFieldsParameters.ColumnCount Property

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

Namespace : DevExpress.XtraDataLayout

Assembly : DevExpress.XtraLayout.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public int ColumnCount { get; set; }
vb
Public Property ColumnCount As Integer

Property Value

TypeDescription
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.

csharp
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:

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

See Also

RetrieveFieldsParameters Class

RetrieveFieldsParameters Members

DevExpress.XtraDataLayout Namespace