Hi
I want to create a new control based on XamDataGrid. My xaml:
<igDP:XamDataGrid x:Class="CustomControls.InfraDataGrid" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:igDP="http://infragistics.com/DataPresenter" x:Name="IDG">
</igDP:XamDataGrid>
When i set the DataSource:
<my:InfraDataGrid DataSource="{Binding Source={StaticResource BookData},XPath=Book}"/>
of this new control i get an error:
"Can't set the DataSource on a DataPresenter that has items added explicitly through the DataItems collection."
What am i doing wrong?
I was wondering if you have managed to sort this issue out. Let us know if you need further assistance.
Are there any other settings applied to the grid like FieldLayouts, FieldSettings, FieldLayoutSettings?
I did a quick search in the forums and found these articles that describes the same issue:
http://forums.infragistics.com/forums/p/4474/21464.aspx
http://blogs.infragistics.com/forums/t/23760.aspx
Let me know if you can resolve the issue with enclosing the FieldLayout tag with a FieldLayouts.