JVCL Help:TJvDBGrid.AutoSizeColumnIndex

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Indicates the column that will be autosized when the grid or its columns are resized.


Pascal

 propertyAutoSizeColumnIndex: Integer;


Description

Use AutoSizeColumnIndex to specify the column or columns that are auto sized. AutoSizeColumnIndex can be set to any of the following values:

Value Meaning
-2 Indicates that the rightmost visible column should be auto sized. If the number of visible columns changes so might the column that is sized.
-1 Auto size all visible columns proportionally.
0..n Auto size the column with the specified index. If n > = Columns.Count, autosizing is disabled.


Auto sizing is only active when AutoSizeColumns is true and all visible columns in the grid can be shown without a horizontal scrollbar. The values of MinColumnWidth and MaxColumnWidth are also taken into consideration when auto sizing.


See Also

TJvDBGrid.AutoSizeColumns, TJvDBGrid.MaxColumnWidth, TJvDBGrid.MinColumnWidth


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page