2015-12-22 5 views

Répondre

3

Il est possible de tester ce que vous recherchez dans 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; 
+1

sur 3000 Congrats représentant! ;-) – Kromster

+0

Merci: D: D: D –