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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:11:00+00:00 2026-06-05T07:11:00+00:00

I think for displaying columns in combobox is responsible this string in Desingner of

  • 0

I think for displaying columns in combobox is responsible this string in Desingner of Form:

this.ComboBox1.DisplayMember = "name";

But, i cant add anything near “name”, combobox shows in all strings : System.Data.DataRowView

Maybe its wrong, tell me please how do this?

I’m just drag table as combobox from Data Source:

When Form Loading:

private void frmCheck_Load(object sender, EventArgs e)
{        
 this.ttzTableAdapter.Fill(this.dbDataSet.ttz, Convert.ToInt32(idFromWork.Text));
}

So combobox show, just “name” in list, i want that he show “number” and “name” in list.

"Convert.ToInt32(idFromWork.Text)" 

parameter for show names where id_ttz(ID) = @idwork

  • 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-05T07:11:02+00:00Added an answer on June 5, 2026 at 7:11 am

    DisplayMember is a string specifying the name of an object property that is contained in the collection specified by the DataSource property. You cannot specify several properties to display. If you’ll try to do this, your ‘compound property’ will not be found, and objects will be displayed via ToString() implementation (thats why you see System.Data.DataRowView string).

    If you need to display several properties of object, you can create custom multi-column combobox and implement it’s pop-up as ListView or DataGridView.

    UPDATE: Instead of binding directly to DataTable of DataView, you can create your own anonymous type, which will provide formatted text for displaying:

    ComboBox1.DataSource = tdbDataSet.ttz.AsEnumerable()
              .Select(row => new 
                   { 
                     Text = String.Format("{0,5} | {1}", row["id_ttz"], row["name"]),
                     Value = row["id_ttz"]
                   })
             .ToList();
    
    ComboBox1.DisplayMember = "Text";
    ComboBox1.ValueMember = "Value";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think this is fairly simple. I'd like to only return the string values
My app is displaying some data in tabular form (400 rows and 7 columns
I'm having trouble with displaying image from db. I think that method for saving
Think: tiling my emacs window with eshells, a la xmonad. Is this possible? I
I think this will be a really easy one for anyone that is decent
I think I have got myself into a muddle with this one. My database
I think I'm getting ahead of myself, but I tried AJAX tutorials to read
I have a chart control that is displaying columns with values on top (series
Suppose I'm trying to displaying all US states in two columns, ordered alphabetically. Which
My grid: @( Html.Telerik().Grid<eGate.BackOffice.Core.Model.UI.EgateMenuRevisionViewData>() .Name(Grid) .Columns(columns => { columns.Bound(c => c.ParentId) .Aggregate(a => a.Count()).ClientGroupHeaderTemplate(Html.ActionLink(Create

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.