The scenarios:
I have a MasterTableView and it contains one DetailsTable. And the GridTableView contains a button in its CommandItemTemplate section. I want to fetch the parent table ID (MasterTableView) against the button click in the hierarchical child table (GridTableView). The e.CommandArgument property in the grid's ItemCommand event is empty.
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>