Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Combining columns of a dataview bound to a listbox

$
0
0

Hi all,

in my application I have created a database access layer with the Visual Studio database designer which created classes for my tables. One of the tables is called "Members" and has properties like "FirstName", "LastName" etc.

I bound a listbox to the default view of the members table. The "DisplayMemberPath" of the listbox is set to the "LastName" column. The listbox then shows the last names of all the members. This works great.

I would, however, like to show the combination of "FirstName" and "LastName" columns in the listbox. How can I achieve this?

Thanks for any idea!
Nicolas


Viewing all articles
Browse latest Browse all 18858

Trending Articles