Dreamweaver

Display data as a hyperlink in a DataGrid

When creating or editing a DataGrid, use the Hyperlink Column to display information as hyperlinks. A typical use is to display data (such as a customer number or product name) as a hyperlink that users can click to navigate to a separate page that provides details about that item.

  1. In the DataGrid dialog box, select the Hyperlink column in the Columns box.
  2. In the Hyperlink Column dialog box, enter a title for the column.
  3. From the Hyperlink Text section, select the Static Text or Data Field option:
    • If you select Static Text, enter the text of the hyperlink.

    • If you select Data Field, select a DataSet column to provide the hyperlink text.

  4. From the Linked Page section, select the Static URL or Data Field option:
    • If you select Static URL, enter the URL of the destination page or browse to select the destination page.

    • If you select Data Field, select a DataSet column to provide the URL.

  5. If you are creating the hyperlink using the Data Field options, specify a formatting expression for the hyperlink text in the Format String box. For more information about format expressions, see the appropriate ASP.NET documentation for the String.Format Method for DataGrids.
  6. Click OK.