Perfect! - thanks!
Main Topics
Browse All TopicsI am using a cxGrid, with the default configuration with cxGridViewerDBTableView1. I need to find the number of records being displayed, and send it in code to a label. The number of records has to reflect the number after filtering in the grid, so if the dataset has 10 records, 4 of which are 'type = A', when type is filtered to 'A' the count should be 4.
The right data is available by setting:
cxGridViewerDBTableView1
DataController
Summary
FooterSummary
attached to the first column and Kind set to skCount, but this seems a roundabout way of going about things, and has disadvantages: the footer stays at the bottom of the column it is attached too, so scrolling to further columns to the right removes it from view. In addition, having the footer there means an export of the grid includes the count at the bottom, which is not desired. I can copy this figure to a label with code in the:
cxGridViewerDBTableView1Da
event, but I'd like to not have the column footer there at all.
I just want a simple count of how many records are currently displayed, which would seem to be fairly basic ... isn't there some simple cxGridViewerDBTableView1 .RecordCount or something?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: Geert_GruwezPosted on 2009-10-14 at 20:27:17ID: 25576997
the DataController of the view has a property: FilteredRecordCount
DataContro ller.Filte redRecordC ount]);
this shows the number of records
Label.Caption := Format('Number of filtered rows: %d', [cxGridViewerDBTableView1.