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

TcxGridPreview.MaxLineCount Property

The maximum number of text lines displayed within the preview section.

#Declaration

Delphi
property MaxLineCount: Integer read; write; default cxGridPreviewDefaultMaxLineCount;

#Property Value

Type Default
Integer cxGridPreviewDefaultMaxLineCount

#Remarks

Use the MaxLineCount property to specify the maximum number of text lines displayed within the preview section. This value has a higher priority than the AutoHeight property. In other words, the MaxLineCount property limits the maximum height. For instance, if the MaxLineCount property value is 1 and the preview section contains more than one text line, then only one line will be displayed regardless of the AutoHeight property value.

The default value of the MaxLineCount property is specified by the cxGridPreviewDefaultMaxLineCount global constant.

See Also