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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:35:33+00:00 2026-05-16T11:35:33+00:00

I am trying to update a MySQL entry in WPF. So I have a

  • 0

I am trying to update a MySQL entry in WPF. So I have a list of Tenant names in a combobox and when you click on the Combobox I want to put the first and last name in the textbox. So I have an SelectionChanged event and I try to set a string to cboTenantName.Text which is actually the previous selection and not the current. Now, when I try to set a string to Object SelectedItem.ToString all I get is some description “MySqlWpf.AddRentPayment+TenantData”. Perhaps it’s because I am storing the TenantData in an observable Collection. In that case how should I access it?

ObservableCollection _TenantDataCollection = new ObservableCollection();
public ObservableCollection TenantDataCollection
{ get { return _TenantDataCollection; } }

public class TenantData
{
public string Tenant {get; set;}
}

  • 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-16T11:35:33+00:00Added an answer on May 16, 2026 at 11:35 am

    You’re getting the instance of the TenantData as the ComboBox’s selected item. What you want to display is the “Tenant” property. Thus, you have to do something like “myTextBox.Text = (selectedItem as TenantData).Tenant”.

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

Sidebar

Related Questions

I am trying to update customers information using a mysql query. The variables have
I have been trying to update a table in MySQL 5.0 with Coldfusion MX
I have a heap based table in MySQL that I am trying to update
I have multiple threads trying to update a MySQL database? is executeUpdate method thread-safe
I have a comma separated list of numbers in a MySQL entry 'id_user' like
I am trying to UPDATE a mysql TEXT data-type column with a string contains
I am trying to do a basic mysql update but using AES_ENCRYPT - can
I am trying to use a PHP form (new.php) to update 2 MySQL tables
I'm trying to write a valid mysql statement that would allow me to update
I am trying to use this MySQL query: SET @a:=0; UPDATE tbl SET sortId=@a:=@a+1

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.