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

  • SEARCH
  • Home
  • 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 7011581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:08:44+00:00 2026-05-27T22:08:44+00:00

Firstly let me clarify (if the title wasn’t clear enough): I’m discussing System.Windows.Controls.DataGrid from

  • 0

Firstly let me clarify (if the title wasn’t clear enough): I’m discussing System.Windows.Controls.DataGrid from the .NET 4.0 Framework, not the toolkit edition.

I have a data grid which i read in from a csv which can change with every load.

I am trying to create a simple search, I have been trying to use;

http://www.codeproject.com/KB/WPF/FirefoxLikeSearchWithMVVM.aspx

http://manfred-ramoser.blogspot.com/2009/11/search-highlighting-in-wpf-datagrid.html

and others, but there all seem very complicated for a simple task, can anyone help, just to be clear a filtering system is not want i am after, thank you.

  • 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-27T22:08:44+00:00Added an answer on May 27, 2026 at 10:08 pm

    For my project i did a search function this way :
    i added a ‘FilterResult’ Boolean property to the ViewModel of my data. It is implementing NotifyPropertyChanged.
    So i perform the filter on my list of object with simple foreach loop and i set/unset FilterResult
    And in the ‘Style’ of the DataGridRow i put a Setter on Visibility depending upon this FilterResult

        <Style TargetType="{x:Type DataGridRow}" x:Key="EventColorRowStyle">
            <Style.Triggers>
                <DataTrigger Binding="{Binding FilterResult}"  Value="False">
                    <Setter Property="Visibility" Value="Collapsed"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    

    This simpler and much faster than using the Filter of a CollectionView, but still i can point you on what msdn says about it : http://msdn.microsoft.com/en-us/library/ff407126.aspx

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

Sidebar

Related Questions

Firstly let me clarify (if the title wasn't clear enough): I'm discussing System.Windows.Controls.DataGrid from
Firstly, let me apologise for the title, I honestly couldn't think how to word
firstly, let me quote a bit an essay from Expert Python Programming book: In
Firstly, let me set out what I'd like to do. Assume I have three
Firstly, let me start by saying that I haven't ever directly used SQL views.
Firstly, let me say that I've been searching the Internet, rewriting scripts and I
Firstly, let me introduce general architecture of a project. It is hierarchical. We develop
Firstly, let me say that I've been on this issue for pretty much 2
Firstly, let me give a brief description of the scenario. I'm writing a simple
Let's say I have some email: some_email@yahoo.com . Firstly I would want to remove

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.