use hyperlink column in datagrid

This example shows how to using Hyperlink Column. Use the HyperLinkColumn column type in a GridForm control to create a hyperlink for each row in the GridForm.

Pick a Theme:

Products 
ProductID AscendingProductNameCategory Name
QuantityPerUnitUnitPriceUnitsInStockDiscontinued 
1ChaiBeverages10 boxes x 20 bags$18.0040
2ChangBeverages24 - 12 oz bottles$19.0017
3Aniseed SyrupCondiments12 - 550 ml bottles$10.0013
4Chef Anton's Cajun SeasoningCondiments48 - 6 oz jars$22.0053
5Chef Anton's Gumbo MixCondiments36 boxes$21.350
6Grandma's Boysenberry SpreadCondiments12 - 8 oz jars$25.00120
7Uncle Bob's Organic Dried PearsProduce12 - 1 lb pkgs.$30.0015
8Northwoods Cranberry SauceCondiments12 - 12 oz jars$40.006
9Mishi Kobe NikuMeat/Poultry18 - 500 g pkgs.$97.0099
10IkuraSeafood12 - 200 ml jars$31.0031
1 - 10 / 95 RecordsPage / 10 

  Design   Source  
  1. Open DataForm.NET Manager. In DataForm.NET List page, choose Products by clicking the link.
  2. In the DataForm.NET Designer on the right hand side, switch to GridForm tab.
  3. Click ProductName hyperlink to bring up a GridForm Field Designer window.
  4. In the opening window, please have a look at the Column Type which is selected as HyperLink Column.
  5. When the Column Type is Hyperlink Column, you have to specify the Link URL and Target(optional). In this example, Link URL is ShowDataForm.aspx and Target is _blank which will open a page in the new browser.
  6. In order to let eDataForm control to know which DataForm it's going to display, you need to add a "DataFormID" field to GridForm and check its "Add to Query String" attribute. Specify current DataForm ID as value. Check off the Visible checkbox, so this "DataFormID" field won't show up in the GridForm.
    You can add/delete more fields to the URL. Click here to learn how to add field to query string.
  • Click HERE to open up a READ ONLY DataForm.NET Manager.
  • Click HERE to try for yourself.