This is a migrated thread and some comments may be shown as answers.

Unable to sort column using dynamic object and ContentControl

0 Answers 14 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 30 May 2019, 08:41 PM

I'm using the RadGridView with a dynamic object binding in order to show a grid of business objects (rows), each with properties (columns). The properties are not known before the business objects are selected.

Each property has its own viewmodel and related DataTemplate.

The GridCellPropertyContainerViewModel we are using for each grid cell encapsulates the relevant PropertyContent, so its DataTemplate uses a ContentControl, like so:

<DataTemplate DataType="{x:Type local:GridCellPropertyContainerViewModel}">
   <ContentControl Content="{Binding PropertyContent, ValidatesOnExceptions=True, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />
</DataTemplate>     

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Ryan
Top achievements
Rank 1
Share this question
or