Hello!
How to bind CollectionViewSource to Datagrid? Because I've tried some things but no data is displayed.
Example:
<Page.Resources>
<ResourceDictionary>
<CollectionViewSource x:Name="SampleDataViewSource" />
</ResourceDictionary>
</Page.Resources>
<Grid:SfDataGrid Name="SampleGrid" Margin="0"
ItemsSource="{Binding SampleDataViewSource}"
AutoGenerateColumns="False"
ColumnSizer="Auto">
<Grid:SfDataGrid.Columns>
<Grid:GridTextColumn HeaderText="ID" MappingName="id" />
<Grid:GridTextColumn HeaderText="Customer" MappingName="name" />
<Grid:GridTextColumn HeaderText="Country" MappingName="country" />
</Grid:SfDataGrid.Columns>
</Grid:SfDataGrid>
However if I bound this CollectionViewSource to GridView, data is displayed.
Thanks un advance
Regards
Anna