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 198865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:58:28+00:00 2026-05-11T16:58:28+00:00

i am using a BindingSource.Filter to list only certain elements of the datasource. especially

  • 0

i am using a BindingSource.Filter to list only certain elements of the datasource.
especially i use it like this a lot:

m_bindingSourceTAnimation.Filter = "Name LIKE '" + FilterText + "'";

now my question is, if it is somehow possible to use regular expressions with these filters.

i would especially need multiple wildcard (*) characters like

*hello*world*

thanks!

  • 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-11T16:58:28+00:00Added an answer on May 11, 2026 at 4:58 pm

    You can query the DataTable with LINQ pretty easily and then you can use a actual Regex within the query to filter it anyway you like.

    Something like this…

    var source = myDataTable.AsEnumerable();
    
    var results = from matchingItem in source
                  where Regex.IsMatch(matchingItem.Field<string>("Name"), "<put Regex here>")
                  select matchingItem;
    
    //If you need them as a list when you are done (to bind to or something)
    var list = results.ToList();
    

    This will get you the rows that match based on an actual Regex, I don’t know what you need to do with the information, but this would allow you to get the rows based on a Regex.

    ****Update** – Trying to clarify based on comment

    I don’t know what you are using this for so I don’t have a great context, but from what I can guess you are using a DataTable to data bind to a Grid or something like that. If this is the case, I think that you should be able to assign “list” from the snippet I put in here as the DataSource (assuming you are using a BindingSource) and I think that it will work. I don’t use DataTables, I usually stick to objects for working with my data so I am not exactly sure how it will handle the list of rows, but I would think that it would work (or be close enough that a little google searching would do it).

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

Sidebar

Ask A Question

Stats

  • Questions 194k
  • Answers 194k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I think this would work: dt { float: left; clear:… May 12, 2026 at 6:42 pm
  • Editorial Team
    Editorial Team added an answer You seem to have already decided that a seperate UI… May 12, 2026 at 6:42 pm
  • Editorial Team
    Editorial Team added an answer Amarghosh has a good point. why aren't you using e4x… May 12, 2026 at 6:42 pm

Related Questions

I have a table with say 1640 items. I set bindingSource.Filter = some filter
I have created a dataset and in the designer I have created the relations
I have a BindingList<> of a class set to the DataSource property of a
I have written a control in C# that derives from System.Windows.Forms.Control. I have added

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.