The scenario:
I have a MasterTableView and it contains one DetailsTable. And the GridTableView contains a button in its CommandItemTemplate section. I want to manipulate that button programatically on its own click. For example, change its caption or visibility when it is clicked by certain user etc.
The markup for the CommandItemTemplate is below:
<CommandItemTemplate>
<div style="padding: 5px 5px; text-align:right" >
<asp:Button ID="btnSaveAction" runat="server" SkinID="Save"
CausesValidation="false" Text='Save' CommandName="Save" CommandArgument='<%# Eval("ID") %>' />
</div>
</CommandItemTemplate>