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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:20:32+00:00 2026-06-11T23:20:32+00:00

It seems as if only DataSet , DataTable and DataView can be used as

  • 0

It seems as if only DataSet, DataTable and DataView can be used as sources when you want to use BindingSource.Find. I’m binding IQueryable and IEnumerable to my binding source, but would very much like to enjoy the ‘convenience’ of the BindingSource.Find method, without writing reams of code myself, as time is of the essence.

Does anyone know of an existing implementation, or at least detailed ‘how to’ article that can help me achieve this?

  • 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-06-11T23:20:34+00:00Added an answer on June 11, 2026 at 11:20 pm

    You can use the Type.GetProperty and Array.FindIndex methods to create a concise extension method.

    public static int Find<T>(this IEnumerable<T> items, string propertyName, Object key)
    {
        PropertyInfo property = typeof(T).GetProperty(propertyName);
        if(property == null)
        {
            throw new ArgumentException(String.Format("Type {0} contains no property named \"{1}\". ",
                                        typeof(T).Name, propertyName), "propertyName");
        }
        return Array.FindIndex(items.ToArray(), i => Object.Equals(property.GetValue(i, null), key));       
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seems only a module's missing, but I've wrote the in the package.json file, and
I am experiencing a odd problem. My OnItemSelectedListener seems only works one time, i
My session seems to only be valid in the current window/tab. Also it seems
the following javascript function only seems to work when i have the final confirm()
I'm having a problem that only seems to happen on my Lenovo Thinkpad Tablet
I've been investigating this issue that only seems to get worse the more I
I found the Add Java Exception Breakpoint menu item but it only seems to
For some reason, siginterrupt() only seems to set the behaviour for the first signal
When I run the following code, it only seems to be downloading the first
I found a php function checkdate() , but strangely enough it only seems to

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.