How to put gif file in Data grid......

G

Gill Smith

I have used hyper link in the datagrid cell wherein user can delete the row
by clicking on it. How to replace this hyperlink with image in these cell ?
Gish
 
J

Joe Fallon

You can use a Template column instead of a Bound column:

<asp:TemplateColumn HeaderText="Delete">
<ItemTemplate>
<asp:Hyperlink id=Hyperlink2 runat="server" ToolTip="Delete"
ImageUrl="/myApp/img/Delete.gif"
NavigateUrl='Delete'>
</asp:Hyperlink>
</ItemTemplate>
</asp:TemplateColumn>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top