---
title: "Open hyperlink url from datagridview column C#"  
description: "Open hyperlink url from datagridview column C#"  
author: "Royce Roy"  
published: 2013-01-07  
updated: 2013-01-07  
canonical: https://www.mindstick.com/forum/532/open-hyperlink-url-from-datagridview-column-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Open hyperlink url from datagridview column C#

Hi Guys\
\
I have a [link](https://www.mindstick.com/articles/23633/link-builder) [column](https://www.mindstick.com/forum/33860/how-to-calculate-column-summary-in-sql-server) in my [datagridview](https://www.mindstick.com/articles/607/working-with-datagridview-in-vc-sharp) with some [URL](https://www.mindstick.com/forum/436/url-redirection) [string](https://www.mindstick.com/articles/1527/string-split-in-c-sharp) from example "**http://google.com"**. I want to open this URL on website. How it is possible? \
\
Thanks.

## Replies

### Reply by AVADHESH PATEL

Hi Royce Roy,\
\
Try this code within CellContentClick event of DataGridView\
\

```
 private void dgvControl_CellContentClick(object sender, DataGridViewCellEventArgs e)        {            string sUrl = dgvControl.Rows[e.RowIndex].Cells[2].Value.ToString();            ProcessStartInfo sInfo = new ProcessStartInfo(sUrl);            Process.Start(sInfo);        }
```

\
Note: Changed column index (Rows[e.RowIndex].Cells[2]) according your link column of datagridview.\
I hope it resolve your problem.


---

Original Source: https://www.mindstick.com/forum/532/open-hyperlink-url-from-datagridview-column-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
