Welcome Guest Search | Active Topics | Sign In | Register

How to display image button in ButtonColumn of Grid control? Options
Jack.Wu
Posted: Tuesday, March 9, 2010 4:10:53 AM
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.
eo_support
Posted: Tuesday, March 9, 2010 9:19:13 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.