|
<syncfusion:GridTemplateColumn HeaderText="CustomerName" MappingName="CustomerName" >
<syncfusion:GridTemplateColumn.CellTemplate>
<DataTemplate>
<Button x:Name="btnButton" Content="{Binding CustomerName}" Width="100" Height="50" syncfusion:FocusManagerHelper.FocusedElement="True"
Command="{Binding Path=DataContext.RowDataCommand,ElementName=sfDataGrid}"
CommandParameter="{Binding ElementName=btnButton}"/>
</DataTemplate>
</syncfusion:GridTemplateColumn.CellTemplate>
</syncfusion:GridTemplateColumn> |
|
public void ChangeCanExecute(object obj)
{
var button = (obj as Button);
//Here your customized content can set to button content
button.Content = "ContentChanged";
} |