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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:44:14+00:00 2026-05-13T06:44:14+00:00

hello everyone it is me again! i’ve got few problems too. i am deveoping

  • 0

hello everyone it is me again! i’ve got few problems too. i am deveoping an training software that’s why i am asking lots of questions.i hope you help me. thanks in advance.
my problems are as follows:

First of all: i have a register window that has a combobox. i have binded it an access datasource. the problem is when i select an item, it doesnt select. it writes System.data.Datarow.(i want it list names like mike,susan ect.)

how can i fix it? where is the problem?

public Register()
{                   
    this.InitializeComponent();
    Select();

}

public void Select()
{

    DataView view;
    OleDbConnection con = new OleDbConnection(connectionstring);
    con.Open();
    string sql = "Select * from UserInformation";
    OleDbCommand cmd = new OleDbCommand(sql, con);
    OleDbDataAdapter da = new OleDbDataAdapter(cmd);
    DataSet ds = new DataSet();
    da.Fill(ds, "UserInformation");
    view = ds.Tables[0].DefaultView;
    RegCombo.ItemsSource = view;

    con.Close();
}

XAML Code:

<ComboBox IsSynchronizedWithCurrentItem="True" 
    Margin="0,22.447,46.92,0" SelectedItem="{Binding Path=UserName}"
    VerticalAlignment="Top" Height="29" Grid.Column="3" Grid.Row="1" 
    IsEditable="True" IsDropDownOpen="False" MaxDropDownHeight="266.666666666667" 
    FontSize="16" x:Name="RegCombo" FontWeight="Normal"  >

    <ComboBox.ItemTemplate>
        <DataTemplate>

            <TextBlock Text="{Binding Path=UserName}"></TextBlock>

        </DataTemplate>
    </ComboBox.ItemTemplate>
</ComboBox>
  • 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-13T06:44:14+00:00Added an answer on May 13, 2026 at 6:44 am

    You’ll need to set the DisplayMemberPath on your ComboBox to be the property on the underlying object you want to see in the ItemsControl

    If this is not specified, and you have not overridden the ToString() method on that object, you will just see (what you are now seeing) – the qualified name of the object.

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

Sidebar

Ask A Question

Stats

  • Questions 275k
  • Answers 275k
  • 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 It doesn't appear you can pass in anything other than… May 13, 2026 at 2:40 pm
  • Editorial Team
    Editorial Team added an answer The buttons you refer to are handled as MediaCommands, NavigationCommands,… May 13, 2026 at 2:40 pm
  • Editorial Team
    Editorial Team added an answer Have you tried using the Google hosted versions of jQuery… May 13, 2026 at 2:40 pm

Related Questions

Hello everyone Masters Of Web Delevopment :) I have a piece of PHP script
Hello wonderful people of stackoverflow! I have a problem. I am working on an
Question Hello All, I've had some confusion for quite some time with essentially flooring
Questions Updated instead of making a new question... I really want to provide a
I'm trying to replace something multi line in Javascript, IE is giving me trouble.

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.