ProfK
ProfK

Reputation: 51114

Image as hyperlink in a GridView

The ASP.NET GridView control's default column types just don't seem to be up to using an image as a hyperlink. The HyperLinkField has no image attributes, and the ImageField has no navigation attributes. Is this possible without using a TemplateField?

Upvotes: 0

Views: 613

Answers (1)

Oleg Kalenchuk
Oleg Kalenchuk

Reputation: 517

You can try to use HyperLinkField.DataTextFormatString property with inserting the tag into this format string

Upvotes: 1

Related Questions