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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:12:09+00:00 2026-05-23T12:12:09+00:00

I have quite a few places where I need to bind form controls directly

  • 0

I have quite a few places where I need to bind form controls directly to a backing database. I’m using LINQ to DataSet to do this.

For example, I have a ComboBox with entries filled in by a database query. The problem is of course that all of my data uses numerical IDs and I need to do a table query to translate this into user-readable options.

Normally I would just join the second table and use the combobox DisplayMember to point at the user-readable string column. This doesn’t work because after using join or any projections on the query you’re (understandably) unable to convert that query into a DataView.

It’s hard to believe that this problem isn’t run into by everyone who uses DataView. Is there any way to override my form controls’ behavior to make them display a function of their value? Like if their Value is v, then they display SomeMethod(v)?

  • 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-23T12:12:09+00:00Added an answer on May 23, 2026 at 12:12 pm

    I don’t believe what you are trying to accomplish is possible by means of DisplayMember. Its a property, that’s how it was designed. However, there are a few other means to accomplish what you want.

    1) You could wireup to the ComboBox’s Format event. This is the ideal place to change your databound items into human-readable items for display, and really is exactly what you want.

    2) You could use LINQ to SQL classes instead, and override the .ToString() portions in the partial classes to display the data how you want. When you databind to a LINQ to SQL object the ComboBox will display the string value of that object.

    Since you are already using LINQ to DataSet, I would just wireup to the Format event, though.

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

Sidebar

Related Questions

I have quite a few RewriteRules in my .htaccess that looks like this RewriteRule
I have quite a few situations where I have database structures similar to: TABLE
In our code we have quite a few cases of this pattern: class outerClass
I'm currently using QDataStream to serialize my classes. I have quite a few number
I have written quite a few Ruby programs, but if I need to show
I have seen process.nextTick used in a few places and can't quite tell what
I have seen in quite few places (one example here: http://pascalgamedevelopment.com/archive/index.php/t-1204.html ) people doing
I have searched quite a few places but i haven't got up with any
I have quite a few dictionaries where the key is a composite of several
I have quite a few libraries and models that get loaded into a controller,

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.