This is a simple article to show the data into Combobox usinf WPF, you can use multiple columns in a combobox.
ComboBox:
The ComboBox is a user interface (UI) item that presents users with a list of options. The contents can be shown and hidden as the control expands and collapses. In its default state, the list is collapsed, displaying only one choice. The user clicks a button to see the complete list of options.
Here I am creating a simple application to show ComboBox in WPF.
First Off all open Visual Studio 2008 -> File -> New -> Project then select WPF Application as follows:
Figure 1: Open new wpf application
Now drag two ComboBox from toolBox and drop within grid of the window (See figure 2).
Figure 2:
Window.xaml:
<
<!--Multiple column in combobox-->
<!--This is simple Combobox-->
using
Window.xaml.cs:
namespace
Figure 3:
Click on button1 like this
Figure 4:
The Following output will occur.
Figure 5: data in combobox.
When you Click on button2, Then the Following output will occur.
Figure 6: Multiple columns in a combobox.
Pro WPF: Windows Presentation Foundation in .NET 3.0