Click here to Skip to main content
15,926,939 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: ActualWidth value is becoming 0 Pin
indian1438-Nov-11 14:57
indian1438-Nov-11 14:57 
QuestionKeep messagebox on top of window [Solved] Pin
WelshChris4-Nov-11 4:07
WelshChris4-Nov-11 4:07 
AnswerRe: Keep messagebox on top of window Pin
Wayne Gaylard4-Nov-11 4:14
professionalWayne Gaylard4-Nov-11 4:14 
GeneralRe: Keep messagebox on top of window Pin
WelshChris4-Nov-11 4:21
WelshChris4-Nov-11 4:21 
GeneralRe: Keep messagebox on top of window Pin
Wayne Gaylard4-Nov-11 4:29
professionalWayne Gaylard4-Nov-11 4:29 
GeneralRe: Keep messagebox on top of window Pin
WelshChris4-Nov-11 6:54
WelshChris4-Nov-11 6:54 
GeneralRe: Keep messagebox on top of window Pin
SledgeHammer014-Nov-11 7:15
SledgeHammer014-Nov-11 7:15 
GeneralRe: Keep messagebox on top of window Pin
WelshChris4-Nov-11 7:29
WelshChris4-Nov-11 7:29 
GeneralRe: Keep messagebox on top of window Pin
Wayne Gaylard4-Nov-11 8:11
professionalWayne Gaylard4-Nov-11 8:11 
QuestionWPF Pin
Unque4-Nov-11 3:06
Unque4-Nov-11 3:06 
AnswerRe: WPF Pin
Abhinav S4-Nov-11 3:15
Abhinav S4-Nov-11 3:15 
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 
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 
Here's the XAML as it is now:

<DataGrid x:Name="grdItems"
            Grid.Row="4"
            Grid.Column="0"
            Grid.ColumnSpan="2"
            AutoGenerateColumns="False"
            ItemsSource="{Binding SearchItems}"
            Visibility="{Binding GridVisible, Converter={StaticResource visibilityConverter}}"
            Margin="5">

    <DataGrid.Columns>
        <DataGridTemplateColumn Header="Search Terms"
                                Width="*">
            <DataGridTemplateColumn.CellEditingTemplate>
                <DataTemplate>
                    <ComboBox x:Name="cboBOMs"
                                Height="22" 
                                DataContext="{Binding ElementName=QueryView, Path=DataContext}"
                                IsEditable="True"
                                ItemsSource="{Binding BOMs}"
                                SelectedItem="{Binding SelectedBOMItem}"></ComboBox>
                </DataTemplate>
            </DataGridTemplateColumn.CellEditingTemplate>
        </DataGridTemplateColumn>
        <DataGridTextColumn Header="Quantity" 
                            Binding="{Binding Quantity}"
                            Width="100">
        </DataGridTextColumn>
    </DataGrid.Columns>

</DataGrid>


I don't understand what's going on because this code is in QueryView.xaml. You can see the combo is looking for the DC on QueryView.

The output window shows the error:
Cannot find source for binding with reference 'ElementName=QueryView'. BindingExpression:Path=DataContext; DataItem=null; target element is 'ComboBox' (Name='cboBOMs'); target property is 'DataContext' (type 'Object')



This appeaars to be right. I don't get it and I'm tired of screwing with it. if the DB wasn't so damn big I'd post the entire app on my site and ask for more help. I'm fairly frustrated at this point.
Everything makes sense in someone's mind

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 

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.