DataGridComboBoxColumn was not found

Posted by Budda on Stack Overflow See other posts from Stack Overflow or by Budda
Published on 2010-05-10T01:56:29Z Indexed on 2010/05/10 1:58 UTC
Read the original article Hit count: 402

Filed under:
|
|

The System.Windows.Controls.Data.DataGrid is used in my Silverlight application, but on attempt to add 'DataGridComboBoxColumn' column to the grid the following error messages are obtained:

Error 1 The tag 'DataGridComboBoxColumn' does not exist in XML namespace 'clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data'. C:\Project\Budda\VFMElita\VfmElitaView\Pages\SquadView.xaml 140 22 VfmElitaView Error 2 The type 'data:DataGridComboBoxColumn' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built. C:\Project\Budda\VFMElita\VfmElitaView\Pages\SquadView.xaml 142 22 VfmElitaView

Here is my "header" of the xaml-file:

Here is grid:

    <StackPanel Grid.Row="1" Grid.Column="0" Grid.RowSpan="2">
        <TextBlock Text="????"/>
        <data:DataGrid AutoGenerateColumns="False" ItemsSource="{Binding FieldPlayers}">
            <data:DataGrid.Columns>
                <!--<data:DataGridTemplateColumn Header="#">
                            <data:DataGridTemplateColumn.CellTemplate>
                                <DataTemplate>
                                    <TextBlock Margin="4" Loaded="TextBlock_Loaded"/>
                                </DataTemplate>
                            </data:DataGridTemplateColumn.CellTemplate>
                        </data:DataGridTemplateColumn>-->
                <data:DataGridTextColumn Header="?" Binding="{Binding Number}"/>
                <data:DataGridComboBoxColumn> - that doesn't work

                </data:DataGridComboBoxColumn>
            </data:DataGrid.Columns>
        </data:DataGrid>
    </StackPanel>

What is required to get 'DataGridComboBoxColumn' workable? Any help is welcome. Thanks.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about Silverlight