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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:58:37+00:00 2026-05-25T01:58:37+00:00

I have an autocomplete box where I am trying to bind the selected item

  • 0

I have an autocomplete box where I am trying to bind the selected item to a propery of the item that is actually selected.
I.e. I have a Client object with a Name property, and the ItemsSource of my autocomplete box is a List of Clients.

The property I am trying to bind as the selected Item is a String, called SelectedClientName.
But because SelectedClientName is not of type Client, I cannot bind it directly.

As a work around, I am using a converter.
But I would like to know if there is a way to do this in the binding without converters.

  • 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-25T01:58:38+00:00Added an answer on May 25, 2026 at 1:58 am

    I’d suggest having SelectedClientName not be of a different type, in your case of type string. Keep it the Client type and utilize your Name property where a string is required.

    Here’s some additional information on binding to complex objects in an AutoCompleteBox: http://www.codeproject.com/Tips/79158/AutoCompleteBox-Binding-Custom-Objects

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

Sidebar

Related Questions

I have an autocomplete combobox that creates a new select box based upon the
I have a simple autocomplete field that spits out a bunch of suggested words
I have a WPF application and am using the WPF toolkit autocomplete box in
I have an Activity with an AutoComplete box on it. Whenever the text changes,
I have a geo collection that contains items like: [state name] [city], [state] [country]
I'm trying to create an auto-complete box and have been having problems due to
I have following code for an autocomplete box, I'm adding an image for choice
I have a text box with autocomplete set and working perfectly fine. However when
I have used the jquery-ui to autocomplete an input box and set a hidden
In VB.NET for the combo box, I have set the autocomplete mode to SuggestAppend

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.