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
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:
If the ColumnCount parameter is set to 3, the layout is generated as follows:
See Also