答案 0 :(得分:3)
可以在DataController.Filter.OnGetValueList
中测试您要查找的内容:
procedure TForm1.cxGridTableView1DataControllerFilterGetValueList(
Sender: TcxFilterCriteria; AItemIndex: Integer; AValueList: TcxDataFilterValueList);
var
i: Integer;
begin
for i := 0 to AValueList.Count - 1 do
if AValueList[i].Kind = TcxFilterValueItemKind.fviCustom then
begin
AValueList.Delete(i);
break;
end;
// AValueList[i].Kind is one of
// fviAll, fviCustom, fviBlanks, fviNonBlanks, fviUser, fviValue, fviMRU, fviMRUSeparator, fviSpecial, fviUserEx
end;