需要五个控件: DBGridEh, TDataSource, TClientDataSet,TMemTableEh, TDataSetDriverEh
DBGridEh.DataSource > TDataSource
TDataSource.DataSet > TMemTableEh
TMemTableEh.DataDriver > TDataSetDriverEh
TDataSetDriverEh.ProviderDataSet > TClientDataSet
DBGridEh.SortLocal = True
DBGridEh.STFliter.Visible = True
DBGridEh.STFliter.Local= True
DBGridEh.STFliter.Location = stflUnderTitleFilterEh
界面单元添加引用 EhLibMTE
当TClientdataset 每次获取到数据之后,执行
MemTableEh.Active = False;
MemTableEh.Open;
效果如图
————————————————
版权声明:本文为CSDN博主「ckboss」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/ckboss/article/details/127527600