把IncrementalFiltering这个属性设置成false
然后在cxLookupComboBox1PropertiesChange写代码
procedure TForm1.cxLookupComboBox1PropertiesChange(Sender: TObject);
var
CmdStr: string;
begin
CmdStr:= 'select * from Dh where 1=1 and Dh like ''%'+cxLookupComboBox1.Text+'%''';
ADOQuery1.Close;
ADOQuery1.SQL.Text:= CmdStr;
ADOQuery1.Open;
end;
本文介绍如何在代码中禁用IncrementalFiltering属性,并通过cxLookupComboBox1PropertiesChange事件实现自定义的数据筛选逻辑。
1620

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



