I am refactoring the default DataGrid to the infragistics one and running into a few issues in regards to binding. The following appears to work fine but if we apply grouping, we get a binding error.
BindingExpression path error: 'IsEditable' property not found on 'object' ''CollectionViewGroupInternal' (HashCode=18240208)'
<DataTemplate x:Key="DataTemplate"> <Grid> <Grid Visibility="{Binding Data.IsEditable, Converter={StaticResource TrueToCollapsedConverter}}"> <TextBlock Text="{Binding Data.Name}" /> </Grid> <Grid Visibility="{Binding Data.IsEditable, Converter={StaticResource TrueToVisibleConverter}}"> <TextBlock Text="{Binding Data.Name}" FontWeight="Bold" /> </Grid> </Grid> </DataTemplate>
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Hi again,
I see, usually people tend to select the wrong subforum, rather than their title, this is why I assumed we are discussing our grid controls. Since the XamDataTree does not have a grouping functionality I assume you have performed the grouping on your data, however the XamDataTree’s layouts are dependent of the data object’s types and the change in the collection type expectedly causes an exception. If you were to provide me with some code on how you perform your grouping, or with a test sample I can work o I might be able to figure out a custom approach to resolve your issue in particular.
Looking forward to hearing from you.
My apologies...I have been referring to the xamDataTree (hence the reason I placed this thread in the xamDataTree subforum). :)
I am not sure what I understand what your issue is with the XamDataGrid. If I understood you correctly you are trying to use the IG XamDataGrid instead of the original WPF grid. However what you are describing appears to be used with the original DataGrid since the XamDataGrid does not have proeprties like ItemsSource and ItemTemplate. Are you referring to our XamGrid control (not XamDataGrid)?
We are directly setting the ItemTemplate property to the above DataTemplate. The ItemsSource property is databound to a ListCollectionView, which we are using for grouping.
For the grouping scenario, we are dynamically creating the DataTemplates in the code-behind by referencing the above DataTemplate in the ResourceDictionary.