使用DBGRIDEH来实现,
To have possiblity to sort data in DataSet after sorting markers will be changed. You have to add dlgAutoSortMarkingEh to OptionsEh, set TColumnEh.Title.TitleButton to True for required columns, keep OnSortMarkingChanged event empty, add one of the units EhLib... (EhLibADO, EhLibBDE, EhLibCDS) to 'uses' clause of any unit of your project. Now EhLib have objects to sort data in TClientDataSet, TQuery and TADOQuery. You have to write and register you own object to sort data in DataSet that not present in this list.
EhLib Software

介绍了使用DBGRIDEH实现DataSet数据排序的方法。需在OptionsEh中添加dlgAutoSortMarkingEh,将所需列的TColumnEh.Title.TitleButton设为True,保持OnSortMarkingChanged事件为空,在项目单元的'uses'子句中添加EhLib相关单元。EhLib有对部分数据集排序的对象,不在列表中的需自定义并注册排序对象。
5297

被折叠的 条评论
为什么被折叠?



