Rank: Advanced Member Groups: Member
Joined: 5/22/2009 Posts: 33
|
Hello Sir,
I would like to display 2 images for Edit, Delete in the ButtonColumn of Grid control. How can I do it?
We can use show the image in GridView control as following:
<asp:TemplateField HeaderText="Function"> <ItemTemplate> <asp:LinkButton ID="lnkb_HeadModify" runat="server" CommandName="HeadModify" ToolTip="Edit"><img src=Images\edit.gif border="0"></asp:LinkButton> <asp:LinkButton ID="lnkb_Delete" runat="server" CommandName="del" ToolTip="刪除"><img src="Images\delete.gif" border="0"></asp:LinkButton> <asp:LinkButton ID="lnkb_HeadCopy" runat="server" CommandName="HeadCopy" ToolTip="Copy" Visible="False"><img src=Images\htmledit_copy.gif border="0"></asp:LinkButton> </ItemTemplate> <ItemStyle Wrap="False" Width="50px" /> <HeaderStyle Width="50px" Wrap="False" /> </asp:TemplateField>
How can I do it in the Grid control? Thank you for your help.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
|