How to make a data-bound combo box display (like a DisplayMember) a concatenated string?

Posted by Ivan on Stack Overflow See other posts from Stack Overflow or by Ivan
Published on 2010-05-08T11:49:08Z Indexed on 2010/05/08 12:28 UTC
Read the original article Hit count: 196

Filed under:
|
|

I have a first name and a surname as separate columns in a table. If I bind a combo box to a query and set DisplayMember property to "Name" then each person a table is represented in a combo box by its name. How do I show each person's full name (built from concatenating 2 columns) in a single comb box item in this case?

© Stack Overflow or respective owner

Related posts about entity-framework

Related posts about c#