JVCL Help:TJvDBGrid.AutoSort

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

Search in JVCL Help

 
Search in all projects
 

Summary

Indicates whether the grid tries to change the sort index of the dataset or not.


Pascal

 propertyAutoSort: Boolean;


Description

Use AutoSort when you want the grid to sort automatically when a column is clicked (TitleButtons must be set to true). If AutoSort is true, the grid can sort the columns automatically if all of the following criteria are true:

  • The dataset has a published property named "IndexDefs" of type TIndexDefs
  • The dataset has a published property named "IndexName" of type string
  • There is an index in IndexName that contains the name of the filed of the clicked column


See Also

TJvDBGrid.OnTitleBtnClick, TJvDBGrid.OnTitleBtnDblClick


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