I'm trying to change the content of a GridCommandButton based upon a value from the current row -
I was thinking it would be something like this:
<GridCommandButton Command="Custom" Icon="edit" OnClick="@DisableIntegrator">
<Template>
@{
var integrator = context as Integrator;
integrator.IsActive ? "Deactivate" : "Activate";
}
</Template>
</GridCommandButton>