Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I convert each element of a DataGrid to a hyperlinks

Status
Not open for further replies.

InsideEdge

Instructor
Apr 5, 2005
35
US
Hi, I have a DataGrid that displays images from a database. I have managed to put a hyperlink on the image column but any image I click on takes me to the same destination. What I would like to make each image navigate to a different destination. I’ve looked on the forum and couldn’t find anything that helps, but then I’m still a beginner.

Any help would be greatly appreciated.
 
You will have to use the ItemDataBound event of the grid. Then get a reference to they hyperlink and set the NavigateURL property.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top