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

TdxGalleryControlOptionsView.ColumnCount Property

Specifies the number of columns.

#Declaration

Delphi
property ColumnCount: Integer read; write; default 0;

#Property Value

Type Default
Integer 0

#Remarks

The following table shows the gallery control when the ColumnCount property is set to different values.

ColumnCount = 4 ColumnCount = 6

By default the ColumnCount property does not limit the number of visible column. If the ColumnCount property is set to 0, the actual number of columns depends upon the AutoSizeMode property value:

  • If the AutoSizeMode property value is set to asAutoSize or asAutoWidth, the gallery will contain five columns;

  • If the AutoSizeMode property value is set to asAutoHeight or asNone, the number of columns will be automatically calculated to fit items into the gallery. TdxGalleryControl will display a vertical scrollbar if required.

The default value of the ColumnCount property is 0.

See Also