hiding a row in a cxGrid

来源:互联网 发布:华为云与阿里云区别 编辑:程序博客网 时间:2024/05/21 10:32

https://www.devexpress.com/Support/Center/Question/Details/CQ50238

I suggest that you handle the GridView.DataController.OnFilterRecord event for this purpose:

procedure TForm1.cxGrid1DBTableView1DataControllerFilterRecord(   ADataController: TcxCustomDataController; ARecordIndex: Integer;   var Accept: Boolean); begin   Accept := ADataController.Values[ARecordIndex, 0] > 1300; end;

This way, you can hide unnecessary records, but access their values via the GridView.DataController.Values property, if needed. For more information, please refer to the "TcxCustomDataController.OnFilterRecord" topic in the ExpressDataController's help.

Thanks,
Vito

0 0
原创粉丝点击