Click here to Skip to main content
15,911,142 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF Editable ComboBox In GridView Pin
Kevin Marois3-Nov-11 13:18
professionalKevin Marois3-Nov-11 13:18 
AnswerRe: WPF Editable ComboBox In GridView Pin
SledgeHammer013-Nov-11 16:13
SledgeHammer013-Nov-11 16:13 
GeneralRe: WPF Editable ComboBox In GridView Pin
Kevin Marois4-Nov-11 7:57
professionalKevin Marois4-Nov-11 7:57 
GeneralRe: WPF Editable ComboBox In GridView Pin
SledgeHammer014-Nov-11 8:14
SledgeHammer014-Nov-11 8:14 
GeneralRe: WPF Editable ComboBox In GridView Pin
Kevin Marois4-Nov-11 8:18
professionalKevin Marois4-Nov-11 8:18 
GeneralRe: WPF Editable ComboBox In GridView Pin
SledgeHammer014-Nov-11 8:41
SledgeHammer014-Nov-11 8:41 
GeneralRe: WPF Editable ComboBox In GridView Pin
Kevin Marois4-Nov-11 8:49
professionalKevin Marois4-Nov-11 8:49 
GeneralRe: WPF Editable ComboBox In GridView Pin
SledgeHammer014-Nov-11 8:55
SledgeHammer014-Nov-11 8:55 
You can't bind to the VM directly. ElementName needs a UIElement... thats why I mentioned that you have to have a Name tag on your top level window Smile | :) . So its either going to be something like:

<Window Name=myWindow...>

<ComboBox DataContext="{Binding ElementName=QueryViewModel, Path=DataContext}" ... >

or maybe:

<UserControl Name=myWindow...>

Remember, your Window or UserControl DataContext points to your VM. You need to reference that one. I *think* you can also use the DataContext from the DataGrid, so something like:

<ComboBox DataContext="{Binding ElementName=grdItems, Path=DataContext}" ... >

One of those should work Smile | :) .
GeneralRe: WPF Editable ComboBox In GridView Pin
Kevin Marois4-Nov-11 9:01
professionalKevin Marois4-Nov-11 9:01 
GeneralRe: WPF Editable ComboBox In GridView Pin
SledgeHammer014-Nov-11 10:34
SledgeHammer014-Nov-11 10:34 
GeneralRe: WPF Editable ComboBox In GridView Pin
Kevin Marois6-Nov-11 7:02
professionalKevin Marois6-Nov-11 7:02 
GeneralRe: WPF Editable ComboBox In GridView Pin
SledgeHammer017-Nov-11 6:46
SledgeHammer017-Nov-11 6:46 
AnswerRe: WPF Editable ComboBox In GridView Pin
Abhinav S3-Nov-11 17:13
Abhinav S3-Nov-11 17:13 
QuestionColumnDefinition MinWidth=744 Pin
indian1432-Nov-11 14:57
indian1432-Nov-11 14:57 
AnswerRe: ColumnDefinition MinWidth=744 Pin
Abhinav S2-Nov-11 18:04
Abhinav S2-Nov-11 18:04 
QuestionTrying To Shutdown WPF App - Application.Current is null Pin
Kevin Marois2-Nov-11 6:55
professionalKevin Marois2-Nov-11 6:55 
AnswerRe: Trying To Shutdown WPF App - Application.Current is null Pin
SledgeHammer012-Nov-11 7:49
SledgeHammer012-Nov-11 7:49 
GeneralRe: Trying To Shutdown WPF App - Application.Current is null Pin
Kevin Marois2-Nov-11 8:38
professionalKevin Marois2-Nov-11 8:38 
GeneralRe: Trying To Shutdown WPF App - Application.Current is null Pin
SledgeHammer012-Nov-11 8:47
SledgeHammer012-Nov-11 8:47 
AnswerRe: Trying To Shutdown WPF App - Application.Current is null Pin
Pete O'Hanlon2-Nov-11 8:52
mvePete O'Hanlon2-Nov-11 8:52 
QuestionIs there an existing Color-picker in WPF/Silverlight ? Pin
Loveisasea2-Nov-11 5:22
Loveisasea2-Nov-11 5:22 
AnswerRe: Is there an existing Color-picker in WPF/Silverlight ? Pin
Mark Salsbery2-Nov-11 5:25
Mark Salsbery2-Nov-11 5:25 
AnswerRe: Is there an existing Color-picker in WPF/Silverlight ? Pin
Pete O'Hanlon2-Nov-11 5:28
mvePete O'Hanlon2-Nov-11 5:28 
AnswerRe: Is there an existing Color-picker in WPF/Silverlight ? Pin
Abhinav S2-Nov-11 18:13
Abhinav S2-Nov-11 18:13 
QuestionItems collection must be empty before using ItemsSource. Pin
jhoga2-Nov-11 4:39
jhoga2-Nov-11 4:39 

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.