I have a Win RT syncfusion Grid, which is having GridTemplateColumn and its CellTemplate contain the button. but when ever I click on header to sort it throw the error.
Note: Following is the code i am using for the cancel button column and the issue came just after adding this column.
Please suggest me the way to solve this.
<Grid1:GridTemplateColumn Width="120" HeaderText="Action" TextAlignment="Left" HorizontalHeaderContentAlignment="Left" AllowSorting="False">
<Grid1:GridTemplateColumn.HeaderStyle>
<Style TargetType="Grid1:GridHeaderCellControl">
<Setter Property="Background" Value="#1F6996" />
</Style>
</Grid1:GridTemplateColumn.HeaderStyle>
<Grid1:GridTemplateColumn.CellTemplate>
<DataTemplate>
<Button Width="120" HorizontalAlignment="Left" Margin="-15,-2"
Height="45" BorderBrush="Black" BorderThickness="1" Background="#3E61B9" Foreground="White"
Command="{Binding Path=CancelCommand}"
CommandParameter="{Binding AppointmentID}"
Content="Cancel" Click="Button_Tapped" />
</DataTemplate>
</Grid1:GridTemplateColumn.CellTemplate>
</Grid1:GridTemplateColumn>