Using the HyperLink Column

Recall that to specify which columns should appear in the DataGrid, the Columns screen of the Property Builder dialog box is used. When adding a new column to the DataGrid, there are a number of types of columns that can be added. So far we have examined just one of these types, the Bound Column.

Another column type that can be added to a DataGrid is the HyperLink Column. As its name implies, the HyperLink Column displays a hyperlink in each row of the DataGrid. As we will see shortly, the URL and text of the hyperlink created by the HyperLink Column can be either a constant string value or a value from the DataGrid's DataSource.

Unfortunately, the Customers database table does not contain any columns that store URLs. ...

Get SAMS Teach Yourself ASP.NET in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.