Click here to Skip to main content
15,894,955 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: clipping an image region and saving as new image Pin
sivaddrahcir20-Feb-09 11:08
sivaddrahcir20-Feb-09 11:08 
QuestionInfragistics WPF Pin
rastaVnuce19-Feb-09 11:25
rastaVnuce19-Feb-09 11:25 
AnswerRe: Infragistics WPF Pin
rastaVnuce19-Feb-09 22:05
rastaVnuce19-Feb-09 22:05 
QuestionStyling GroupBox dynamically Pin
vsaratkar19-Feb-09 9:43
vsaratkar19-Feb-09 9:43 
AnswerRe: Styling GroupBox dynamically [modified] Pin
Mark Salsbery19-Feb-09 15:37
Mark Salsbery19-Feb-09 15:37 
QuestionCombobox in Listview Pin
Rolorob19-Feb-09 3:25
Rolorob19-Feb-09 3:25 
AnswerRe: Combobox in Listview Pin
ABitSmart19-Feb-09 4:05
ABitSmart19-Feb-09 4:05 
GeneralRe: Combobox in Listview [modified] Pin
Rolorob19-Feb-09 4:26
Rolorob19-Feb-09 4:26 
I have not set the ListView's DataContext in XAML, but I did this:
this.view = (CollectionView) CollectionViewSource.GetDefaultView(dsOrder.Order);


So it is a collection of Orders.
What I want to display in the ComboBoxes however, are Customers linked (through a foreign key, customerID) in the database). I have the CustomerID of the current row in the listview, but it needs to look a customer up. I managed to do this earlier when I did not yet use a listview. I managed this by using the following code:
this.cbCustomer.ItemsSource = dsCustomer.Customer;

So the combobox gets a different ItemsSource then the rest of the User Interface.

My problem is now, since the TextBoxes get generated in the ListView (depending on the number of orders in the dataset), I am unable to call them by their name in C# code to set the ItemsSource. How do I change just the ComboBoxes, whom have no names, to have the Customer as datasource?

I hope this clarifies the problem.

Edit: To be clear, the other fields work in the Datagrid, Textboxes show the correct values (for this example dates).

modified on Thursday, February 19, 2009 10:33 AM

GeneralRe: Combobox in Listview Pin
ABitSmart19-Feb-09 5:16
ABitSmart19-Feb-09 5:16 
GeneralRe: Combobox in Listview Pin
Rolorob19-Feb-09 6:59
Rolorob19-Feb-09 6:59 
GeneralRe: Combobox in Listview [modified] Pin
Rolorob19-Feb-09 20:44
Rolorob19-Feb-09 20:44 
GeneralRe: Combobox in Listview Pin
ABitSmart19-Feb-09 21:19
ABitSmart19-Feb-09 21:19 
GeneralRe: Combobox in Listview Pin
Rolorob19-Feb-09 22:23
Rolorob19-Feb-09 22:23 
GeneralRe: Combobox in Listview Pin
ABitSmart19-Feb-09 22:48
ABitSmart19-Feb-09 22:48 
GeneralRe: Combobox in Listview Pin
Rolorob19-Feb-09 23:01
Rolorob19-Feb-09 23:01 
GeneralRe: Combobox in Listview Pin
ABitSmart19-Feb-09 23:10
ABitSmart19-Feb-09 23:10 
GeneralRe: Combobox in Listview Pin
Rolorob19-Feb-09 23:17
Rolorob19-Feb-09 23:17 
GeneralRe: Combobox in Listview Pin
ABitSmart19-Feb-09 23:51
ABitSmart19-Feb-09 23:51 
GeneralRe: Combobox in Listview [modified] Pin
Rolorob20-Feb-09 0:21
Rolorob20-Feb-09 0:21 
GeneralRe: Combobox in Listview Pin
Rolorob20-Feb-09 1:55
Rolorob20-Feb-09 1:55 
GeneralRe: Combobox in Listview Pin
ABitSmart20-Feb-09 2:15
ABitSmart20-Feb-09 2:15 
GeneralRe: Combobox in Listview Pin
Rolorob20-Feb-09 2:28
Rolorob20-Feb-09 2:28 
GeneralRe: Combobox in Listview Pin
ABitSmart20-Feb-09 2:37
ABitSmart20-Feb-09 2:37 
GeneralRe: Combobox in Listview Pin
Rolorob20-Feb-09 2:39
Rolorob20-Feb-09 2:39 
GeneralRe: Combobox in Listview Pin
Rolorob20-Feb-09 3:12
Rolorob20-Feb-09 3:12 

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.