<local:CustomSfDataGrid ItemsSource="{Binding GDCSource}" x:Name="datagrid">
<local:CustomSfDataGrid.Columns>
<syncfusion:GridTextColumn MappingName="EmployeeName"/>
<syncfusion:GridTextColumn MappingName="EmployeeArea"/>
<syncfusion:GridTextColumn MappingName="EmployeeCity"/>
<syncfusion:GridTextColumn MappingName="EmployeeSalary"/>
</local:CustomSfDataGrid.Columns>
<local:CustomSfDataGrid.HeaderContextMenu>
<ContextMenu Style="{x:Null}">
<MenuItem Command="{Binding Source={x:Static Member=local:ContextMenucommand.SortAscending}}"
CommandParameter="{Binding}"
Header="Sort Ascending"/>
</ContextMenu>
</local:CustomSfDataGrid.HeaderContextMenu>
</local:CustomSfDataGrid> |