EditItem is not allowed

Nov 14, 2008 at 9:52 AM
Hi,

I want my WPF DataGrid to be editable. When I try to double-click on a TextBox-Cell I get the exception "EditItem is not allowed" (translated from the German: "EditItem" ist für diese Ansicht nicht zulässig). I have  installed the latest release.
ItemsSource is a DataSet which I convert to an XmlNode and back again to a DataSet

My DataGrid:
        <toolkit:DataGrid ItemsSource="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type UserControl}}, Path=DataSource, Converter={StaticResource dsConv}, ConverterParameter=ATE/ATES}">
            <toolkit:DataGrid.Columns>
                <toolkit:DataGridTextColumn Header="Statusart" Binding="{Binding XPath=STATECONTEXT/VALUE}" />
            </toolkit:DataGrid.Columns>
        </toolkit:DataGrid>

Why do I get this exception?

Thanks.
Coordinator
Nov 14, 2008 at 10:49 PM
It looks like your data source doesn't support editing.  What is the type of collectionview of your DataGrid.ItemsSource?
Nov 17, 2008 at 6:54 AM
Hi vinsibal,

thanks for your answer. I will try somthing out. I will notify you, if I have further questions...