For example, with a Delete button.
From:
<asp:CommandField ShowDeleteButton="True" />
To:
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="lbDelete" runat="server" CommandName="Delete"
Text="Delete">
</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
No comments:
Post a Comment