Hi,
Is there a way to hide a row in a cxGrid (bounded or unbounded) based on an item value ?
I need to keep it in the data and be able to include it in the recordCount. If I use datacontroller.deleteRecord then the recoundcount does not include it and I lose the record
Thanks
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Robert,
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