This is a migrated thread and some comments may be shown as answers.

Getting number of hidden columns

2 Answers 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 28 Feb 2013, 10:40 AM
Hello.
I use radGridView with filtering in my application.
How can I get number of rows hidden by filter?
e.g. I need to export my radGridView data in Exel if number of hidden rows is greater than some number. Is it possible?

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Mar 2013, 07:26 AM
Hello Dmitry,

Thank you for writing.

Here is how you can get the desired row count:
int totalsRows = radGridView1.Rows.Count;
int rowsAfterFiltering = totalsRows - radGridView1.ChildRows.Count;
int filteredRows = totalsRows - rowsAfterFiltering;

I hope that you find this information useful. Let us know if you need anything else.
 

Regards,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Join us for a FREE webinar to see all the new stuff in action.

Interested, but can’t attend? Register anyway and we’ll send you the recording.
0
Dmitry
Top achievements
Rank 1
answered on 05 Mar 2013, 07:59 AM
Thanks, Stefan.
Best regards,
Dmitry
Tags
GridView
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Dmitry
Top achievements
Rank 1
Share this question
or