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

WPF

 
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 
I am referring to the Microsoft example.

"this.view = (CollectionView)CollectionViewSource.GetDefaultView(orderTable)"
What is this for?? I think you do not need this part.

"this.DataContext = orderTable;"
This is setting the Orders table as DataSource for the Window. Am I right?


Maybe simplify the the view and see if data comes ?

Instead of a ComboBox use a TextBox and bind it to Order and Customer table fields and see if it works. Preferable use some other field also from the Customer Table (other than CustomerID).

<ListView Name="testView"
IsSynchronizedWithCurrentItem="True"
ItemsSource="{Binding Order2Customer}"
Grid.Row="2" Grid.Column="2" Margin="3">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Path=OrderTableProp1}" />
<TextBlock Text="{Binding Path=CustomerTableProp2}"/>
<TextBlock Text="{Binding Path=CustomerTableProp3}"/>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListView>

(Replaces the property names.)
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 
GeneralRe: Combobox in Listview Pin
ABitSmart20-Feb-09 3:16
ABitSmart20-Feb-09 3:16 
GeneralRe: Combobox in Listview Pin
Rolorob20-Feb-09 3:48
Rolorob20-Feb-09 3:48 
GeneralRe: Combobox in Listview Pin
ABitSmart20-Feb-09 4:04
ABitSmart20-Feb-09 4:04 
GeneralRe: Combobox in Listview Pin
Rolorob20-Feb-09 6:10
Rolorob20-Feb-09 6:10 
GeneralRe: Combobox in Listview Pin
ABitSmart21-Feb-09 2:42
ABitSmart21-Feb-09 2:42 
GeneralRe: Combobox in Listview Pin
mavifirar21-Feb-09 10:43
mavifirar21-Feb-09 10:43 
QuestionWPF and MVVM pattern question Pin
babongita18-Feb-09 8:14
babongita18-Feb-09 8:14 
AnswerRe: WPF and MVVM pattern question Pin
Pete O'Hanlon18-Feb-09 8:44
mvePete O'Hanlon18-Feb-09 8:44 
GeneralRe: WPF and MVVM pattern question Pin
babongita18-Feb-09 8:59
babongita18-Feb-09 8:59 
GeneralRe: WPF and MVVM pattern question Pin
Pete O'Hanlon18-Feb-09 9:09
mvePete O'Hanlon18-Feb-09 9:09 

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.