Starr Duskk
asked on
Gridview custom column
In asp.net I am creating a gridview. All columns are from a table, except one. In this one column, it has a header and the column value is the same for every row. It is an image. The same image. On every row. Yep every row.
So how do I create a column that I can just put in the same image for every row?
I tried a TemplateField but the way I did it, it wouldn't let me add an <img tag or a or an <asp:Image runat="server"></asp:Image >.
I tried an ImageField from the properties, but that seemed to want to pull it from the database? <asp:ImageField
How do I do this?
thanks!
So how do I create a column that I can just put in the same image for every row?
I tried a TemplateField but the way I did it, it wouldn't let me add an <img tag or a or an <asp:Image runat="server"></asp:Image
I tried an ImageField from the properties, but that seemed to want to pull it from the database? <asp:ImageField
How do I do this?
thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hmmm. I guess it does. <grin>
I got squiggly lined for something earlier.
thanks!
I got squiggly lined for something earlier.
thanks!
runat="server"></asp:Image
Why not?
Bob