EhLib.Com
https://forum.ehlib.com/en/

Filter List Value with ADO
https://forum.ehlib.com/en/viewtopic.php?f=5&t=509
Page 1 of 1

Author:  cfabio [ 09 Sep 2014, 21:07 ]
Post subject:  Filter List Value with ADO

Hi,
why when I use ado with DbGridEh the list of uncial values of column is not formed automatically
Attachment:
File comment: DBGRIDEH + DS + ADO
Snap1.jpg
Snap1.jpg [ 118.96 KiB | Viewed 2793 times ]


like when I use with memtable?
Attachment:
File comment: DBGRIDEH + DS + MEMTABLEEH
Snap2.jpg
Snap2.jpg [ 164.39 KiB | Viewed 2793 times ]



Workaround:
for i := 0 to DBGridEh1.Columns.Count - 1 do
begin
DBGridEh1.Columns[i].STFilter.ListSource := DBGridEh1.DataSource;
DBGridEh1.Columns[i].STFilter.ListField := DBGridEh1.Columns[i].FieldName;
end;

is this the right way?
Many thanks for help!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/