Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6891995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:28:46+00:00 2026-05-27T06:28:46+00:00

I have a WPF GridView , and part of the data needs to be

  • 0

I have a WPF GridView, and part of the data needs to be shown in the Totals (both Footer and Group totals), but not in the actual data records.

I thought it would be easy to write a trigger and hide the row based on the row’s data, however it turns out that Telerik’s GridView uses an unusual panel for virtualization, so although the specified rows get hidden, a blank white space is left where it should go.

Here’s my current style. It does hide the row, but it is the equivalent to making the visibility Hidden instead of Collapsed (hides the item, but leaves white space where it is)

<Style TargetType="{x:Type telerik:GridViewGroupRow}">
    <Setter Property="Visibility" Value="Visible" />
    <Style.Triggers>
        <DataTrigger Binding="{Binding Group.Key, RelativeSource={RelativeSource Self}}" Value="SomeValue">
            <Setter Property="Visibility" Value="Collapsed" />
        </DataTrigger>
    </Style.Triggers>
</Style>

I have tried setting the ItemTemplate to null, removing the Item from the Telerik’s GridViewVirtualizingPanel, and adjusting the Visibility, but none of these options seem to work.

Does anyone know of a way I could accomplish this? I either want to hide (and collapse) the rows based on a trigger, or find a way to get the query of the current Grouped Expression so I can query a 2nd collection and display the results in the Group Total. I have no problem with using Code-Behind or something hackish to accomplish this.

Edit

As an interesting side note, I can set the height to 1, but not 0. Even 1 is too much though, since I can be hiding thousands of records and this leaves a huge white area on the screen.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:28:47+00:00Added an answer on May 27, 2026 at 6:28 am

    I posted a question on Telerik’s forums as well, and apparently this is not possible. My options are to either filter the result set, or set the Height of the rows to 1.

    If I filter the result set, my Aggregates are incorrect. If I set the row height to 1, I still get large areas of whitespace if there are a lot of records hidden (which there are).

    My end solution was to set the row height of grouped row to 1, and just show non-grouped items. This means all items show if the data is ungrouped, but when grouped there is a 1px white line which is barely noticeable running through the grid where the hidden items are.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been playing around with the WPF GridView control (DesktopUI not Silverlight) and
I have a gridview in wpf and have a two radio buttons and a
I have tried to set up combo boxes in the gridview but all the
I may have missed something obvious with WPF, but is it possible to create
I have WPF ListView with GridView view and I want to remove any trace
I have a WPF ListView ( GridView ) and the cell template contains a
I have a WPf ListView that i am replacing the View with GridView to
I have a ListView in WPF set to GridView, and it has a context
I'm writing a WPF desktop application and have a view that needs to look
I have been having trouble with the WPF DataGrid and listbox GridView performance when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.