Hi,
We are on v11.2 and we have the following XamGrid definition. If I include the highlighted section, the application fails with
"The DataManager attempted to create an instance of the type ‘System.Data.DataRowView’ which does not have an empty parameter list." Is there any way to get around this issue?
<ig:XamGrid x:Name="Grid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" AutoGenerateColumns="False" Width="Auto" ItemsSource="{Binding Details}" >
<ig:XamGrid.FilteringSettings> <ig:FilteringSettings AllowFiltering="FilterMenu" /> </ig:XamGrid.FilteringSettings>
<ig:XamGrid.Columns>
.
</ig:XamGrid.Columns>
</ig:XamGrid>
Hello Arpita,
The XamGrid will attempt to make a new data object of your bound object for situations like Filtering and AddNewRow. When it does it looks to use the empty input constructor of the object. If it cannot find one, it raises an exception in order to notify you that it needs this data object created for it. Since the DataRowView doesn't have one you should use the approach a suggested you. You can get the table from the ViewModel.
Hi, I am binding my data from my view model (where I have the data table). The _table in that suggested solution requires this data table?
Thank you for your post. I have been looking into it and I can suggest you see this forum thread:
http://es.infragistics.com/community/forums/p/78296/395434.aspx
where a similar issue has already been discussed. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.