⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 非常出色表格制作工具,可以生成多种表格.
💻 TXT
字号:
This directory contain files that contain objects that allows to sort data 
in various types of datasets. TDBGridEh use this objects to sort data 
after sorting markers will be changed.

If you adjust grid and title for sortmatking but don't write 
OnSortMarkingChanged event then grid will try to sort data automatically. 
DBGridEhDataService try to find special object that can sort data in 
specified type of TDatsetSet usning function GetDatasetFeaturesForDataSet. 
As you know TDataSet does not support sorting data, but descented objects 
as TQuery or TClientDataSet allows do it. Using procedure 
RegisterDatasetFeaturesEh you can register TDatasetFeaturesEhClass class 
that can sort data in specified type of DataSet. EhLib already have
classes that can sort data TQuery, TADOQuery and TClientDataSet objects. 
Simply add one of the units EhLib... (EhLibBDE, EhLibADO, EhLibCDS) to 
'uses' clause of any unit of your project and grid will automatically 
sort data in such DataSet if it connected to one of its. EhLibBDE, 
EhLibADO, EhLibCDS call RegisterDatasetFeaturesEh procedure in 
initialization part of unit for according type of DataSet's. For other 
types of datasets you have to write and register  new object that will 
implement sorting data in DataSet. Writing procedure 
T[YouDataSet]DatasetFeaturesEh.ApplySorting you can access to list of 
columns whose sortmarkers have up/down direction using SortMarkedColumns 
property. See for instance DbUtilsEh unit to understand  how to write
T[YouDataSet]DatasetFeaturesEh class and EhLibBDE unit to understand  
how to register T[YouDataSet]DatasetFeaturesEh class. 


Engine            DataSet           FileName     

BDE               TQuery            EhLibBDE     
ADO               TADOQuery         EhLibADO     
ClientDataSet     TClientDataSet    EhLibCDS     
DBExpress         TSQLQuery         EhLibDBX
InterBase Express TIBQuery          EhLibIBX

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -