---
title: "Hyperlink columns in ASP.NET MVC Grid"
published_at: "2012-04-10T10:36:00+00:00"
modified_at: "2021-11-26T06:40:11+00:00"
url: "https://www.syncfusion.com/blogs/post/hyperlink-columns-in-aspnet-mvc-grid"
excerpt: "The Syncfusion ASP.NET MVC Grid supports extensive column customization options. A common requirement is to be able to format the columns as hyperlinks. The Grid team has created a sample to show formatting columns as hyperlinks using the Format option..."
taxonomy_category:
  - "ASP.NET MVC"
  - "Development"
  - "Grid"
---

# Hyperlink columns in ASP.NET MVC Grid

[Davis Jebaraj](https://www.syncfusion.com/blogs/author/davisj)

![Image](https://www.syncfusion.com/blogs/wp-content/uploads/2018/08/hyperlink_col_grid_5bc511c4.png)


The Syncfusion ASP.NET MVC Grid supports extensive column customization options. A common requirement is to be able to format the columns as hyperlinks. The Grid team has created a sample to show formatting columns as hyperlinks using the Format option and the Template option.

## Download sample: [Mvc_SFGridHyperlink.zip](https://www.syncfusion.com/downloads/Support/DirectTrac/93027/Mvc_SFGridHyperlink-1047203136.zip)

## Format option

```
@(new HtmlString(Html.Syncfusion().Grid("FlatGrid", "GridModel",
        column =>{
            column.Add(c => c.CategoryName).HeaderText("Category Name").Format("{CategoryName}");
           column.Add(c => c.Description).HeaderText("Description");
            column.Add(c => c.CategoryID).HeaderText("Category ID");
            column.Add(c => c.OtherInfo).HeaderText("Other Info");
        }).ToString()))   
```

## Template option

```
@(new HtmlString(Html.Syncfusion().Grid("FlatGrid", "GridModel",
        column =>{
            column.Add(c => c.CategoryName).HeaderText("Category Name").TemplateColumn(true).TemplateName("LinkTemplate"); ;
            column.Add(c => c.Description).HeaderText("Description");
            column.Add(c => c.CategoryID).HeaderText("Category ID");
            column.Add(c => c.OtherInfo).HeaderText("Other Info");
        }).ToString())) 
```

![clip_image002](https://blog.syncfusion.com/wp-content/uploads/2018/08/image-3.jpg "clip_image002")
