S Sparky Arbuckle Mar 9, 2005 #1 Does anyone know of a way to add an image into a DataGrid's Template Column? Any suggestions are greatly appreciated.
Does anyone know of a way to add an image into a DataGrid's Template Column? Any suggestions are greatly appreciated.
S Sparky Arbuckle Mar 9, 2005 #2 <asp:TemplateColumn HeaderText="Sample"> <ItemTemplate> <asp:HyperLink id="Sample" runat="server" text="Listen" NavigateURL='<%# Container.DataItem("SampleURL") %>' /> </ItemTemplate> </asp:TemplateColumn> I would like the image right next to the "Sample" HeaderText so that the Header looks like: Sample [image] The image is a music note that is not in the database.
<asp:TemplateColumn HeaderText="Sample"> <ItemTemplate> <asp:HyperLink id="Sample" runat="server" text="Listen" NavigateURL='<%# Container.DataItem("SampleURL") %>' /> </ItemTemplate> </asp:TemplateColumn> I would like the image right next to the "Sample" HeaderText so that the Header looks like: Sample [image] The image is a music note that is not in the database.
M Matt Berther Mar 12, 2005 #5 Hello Sparky, Can you do this? <asp:Hyperlink allOfYourExistingAttributes><asp:Image id="myImage" runat="server" ImageUrl="~/path/to/the/image"></asp:Hyperlink>
Hello Sparky, Can you do this? <asp:Hyperlink allOfYourExistingAttributes><asp:Image id="myImage" runat="server" ImageUrl="~/path/to/the/image"></asp:Hyperlink>