Click here to Skip to main content
15,891,431 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Problem in showing an image in WPF Pin
Christian Graus9-Jun-09 10:53
protectorChristian Graus9-Jun-09 10:53 
QuestionUsing Drawing Brushes in WPF 3D Pin
David Shapira8-Jun-09 10:16
David Shapira8-Jun-09 10:16 
QuestionmsOffice intergration Pin
Ed Hill _5_8-Jun-09 3:25
Ed Hill _5_8-Jun-09 3:25 
AnswerRe: msOffice intergration Pin
Mark Salsbery8-Jun-09 6:59
Mark Salsbery8-Jun-09 6:59 
GeneralRe: msOffice intergration Pin
Ed Hill _5_9-Jun-09 3:19
Ed Hill _5_9-Jun-09 3:19 
GeneralRe: msOffice intergration Pin
Mark Salsbery9-Jun-09 5:57
Mark Salsbery9-Jun-09 5:57 
AnswerRe: msOffice intergration Pin
Mike Marynowski15-Jun-09 23:01
professionalMike Marynowski15-Jun-09 23:01 
QuestionBinding database values to a ComboBox more difficult in WPF Pin
Etienne_1238-Jun-09 2:07
Etienne_1238-Jun-09 2:07 
Hi
Here's another simple question. I'm a newbie to WPF and I want to bind some data to a combobox. The data is coming from a Typed Dataset which I added via the VS2008 wizard.

Firslty, I instantiate the DataAdapter and the DataTable:

dsParrys_offoice_furnitureTableAdapters.ProductRangeTableAdapter daProductRange;
dsParrys_offoice_furniture.ProductRangeDataTable dtProductRange;


Then I fill the DataTable dtProductRange:

daProductRange = new aXYZ.dsParrys_offoice_furnitureTableAdapters.ProductRangeTableAdapter();
dtProductRange = daProductRange.GetData();
this.DataContext = dtProductRange;


I then want to display all the ProductRangeDescription in the listbox so I do the following:

cboStartupNew.ItemsSource = dtProductRange;
cboStartupNew.DisplayMemberPath = dtProductRange.Columns[1].ToString();
cboStartupNew.SelectedValuePath = dtProductRange.Columns[0].ToString();
cboStartupNew.SelectedValue = dtProductRange.Columns["ProductRangeDesc"];


When I enter debug mode and hover my mouse over cboStartupNew (tho combobox) it says that there are 17 items in the combobox, but still nothing displays in the combobox. Any ideas?

I tried using cboStartupNew.ItemsSource = ((IListSource)dtProductRange).GetList() as wellm but still no luck
AnswerRe: Binding database values to a ComboBox more difficult in WPF Pin
Pete O'Hanlon8-Jun-09 5:02
mvePete O'Hanlon8-Jun-09 5:02 
GeneralRe: Binding database values to a ComboBox more difficult in WPF Pin
Etienne_1238-Jun-09 6:11
Etienne_1238-Jun-09 6:11 
QuestionHow to bind data to a listview in WPF Pin
Nekkantidivya7-Jun-09 18:32
Nekkantidivya7-Jun-09 18:32 
AnswerRe: How to bind data to a listview in WPF Pin
Mark Salsbery7-Jun-09 20:47
Mark Salsbery7-Jun-09 20:47 
QuestionMedia Elements usage based on some index value that matches with media element name Pin
pavanip5-Jun-09 21:45
pavanip5-Jun-09 21:45 
AnswerRe: Media Elements usage based on some index value that matches with media element name Pin
Mark Salsbery6-Jun-09 8:33
Mark Salsbery6-Jun-09 8:33 
GeneralRe: Media Elements usage based on some index value that matches with media element name Pin
pavanip6-Jun-09 19:33
pavanip6-Jun-09 19:33 
GeneralRe: Media Elements usage based on some index value that matches with media element name Pin
Mark Salsbery7-Jun-09 6:29
Mark Salsbery7-Jun-09 6:29 
GeneralRe: Media Elements usage based on some index value that matches with media element name Pin
pavanip8-Jun-09 18:29
pavanip8-Jun-09 18:29 
QuestionMedia Element source property in code behind Pin
pavanip5-Jun-09 21:15
pavanip5-Jun-09 21:15 
AnswerRe: Media Element source property in code behind Pin
Mark Salsbery6-Jun-09 8:31
Mark Salsbery6-Jun-09 8:31 
GeneralRe: Media Element source property in code behind Pin
pavanip6-Jun-09 19:31
pavanip6-Jun-09 19:31 
Questionhi peoples Pin
Hema Bairavan5-Jun-09 20:07
Hema Bairavan5-Jun-09 20:07 
AnswerRe: hi peoples Pin
Christian Graus5-Jun-09 23:21
protectorChristian Graus5-Jun-09 23:21 
GeneralRe: hi peoples Pin
#realJSOP5-Jun-09 23:36
mve#realJSOP5-Jun-09 23:36 
GeneralRe: hi peoples Pin
Christian Graus5-Jun-09 23:40
protectorChristian Graus5-Jun-09 23:40 
GeneralRe: hi peoples Pin
#realJSOP6-Jun-09 1:00
mve#realJSOP6-Jun-09 1:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.