Getting number of hidden columns

3 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    2 posts
    Member since:
    Feb 2013

    Posted 28 Feb 2013 Link to this post

    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. Stefan
    Admin
    Stefan avatar
    2911 posts

    Posted 05 Mar 2013 Link to this post

    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.
  3. Dmitry
    Dmitry avatar
    2 posts
    Member since:
    Feb 2013

    Posted 05 Mar 2013 Link to this post

    Thanks, Stefan.
    Best regards,
    Dmitry
Back to Top