How to place Hyperlink in grid column
We can place Hyperlink or any other controls inside grid cells using the Column template feature of the grid. The template to a particular column can be provided by using Template and TemplateID properties of the column.
Using template string
The template string will be provided during grid initialization as follows.
Perform action on clicking hyperlink
It is our sole responsibility to perform any action on clicking the link in the particular cell. For that we have to bind event to the hyperlink. But the hyperlink will be visible once the grid is render and so binding the event on DOM load is not sufficient. We can achieve this requirement using the Create event of the grid as follows.
The output will be also follows.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
|3768||02/09/2015||02/09/2015||ASP.NET Web Forms||Grid|
or the page will be automatically redirected to sign-in page in 10 seconds.