| |||||
Adding Hyperlink Fields to a GridView ControlControls You Can Use on Web Forms ASP.NET Data Controls GridView Control A HyperLinkField enables authors to display text or image hyperlinks that users can click to navigate to another page. The text or image of the hyperlink can either be static the same for every row or obtained from a field in the data source. Similarly, the target page for the hyperlink can be a single page for all the hyperlinks, or a URL derived from the data source. To add a hyperlink field
The HyperLinkField class itself does not have a member that directly supports using images. The HyperLink controls that are rendered in the column, though, include an ImageUrl property that can be set programmatically during the RowDataBound event of the GridView control to render image links. To setup a hyperlink field to display images
The following example shows how to set up a HyperLinkField to display a column of image links in a GridView control.
For additional information, see HyperLinkField in the class library. See AlsoAdding Bound Fields to a GridView Control Adding Button Fields to a GridView Control Adding Template Fields to a GridView Control |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme