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

  • Thread starter Thread starter Gill Smith
  • Start date Start date
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
 
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>
 
Back
Top