---
title: "wpf datagrid on click event"  
description: "wpf datagrid on click event"  
author: "Takeshi Okada"  
published: 2013-09-21  
updated: 2013-09-21  
canonical: https://www.mindstick.com/forum/1477/wpf-datagrid-on-click-event  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# wpf datagrid on click event

I use datagrid table on my project. One of the [column](https://www.mindstick.com/forum/33860/how-to-calculate-column-summary-in-sql-server) of the datagrid is the path of the [document](https://www.mindstick.com/articles/328642/what-to-consider-while-choosing-a-software-documentation-tool) according to my project. I would like to do that:

When the [user clicks](https://answers.mindstick.com/qa/34556/if-a-user-clicks-all-the-google-ads-on-my-site-is-it-foul) the path cell/hyperlink cell,

[Program](https://www.mindstick.com/blog/12337/scaling-up-your-mentorship-program) will get the path,

Program will open another tab.

I couldn't see the [onclick](https://www.mindstick.com/forum/12718/onclick-for-hyperlink) event for the column, how can i do this? And also how can I [switch](https://www.mindstick.com/blog/104495/switch-bringing-new-advancements-in-the-education-management-system) the tabitems on the same [wpf Window](https://www.mindstick.com/forum/1333/wpf-window-not-closing)?

Hyper link column is that:

<[toolkit](https://www.mindstick.com/blog/296655/effective-strategies-for-salesforce-migration-and-force-com-migration-toolkit):DataGridHyperlinkColumn [Header](https://www.mindstick.com/articles/336036/explain-about-html-header-body-and-footer-tags)="Path" [Binding](https://www.mindstick.com/blog/146/dynamic-binding-in-c-sharp)="{Binding path}" IsReadOnly="True" TargetName="{Binding Path=path}">

</toolkit:DataGridHyperlinkColumn >


---

Original Source: https://www.mindstick.com/forum/1477/wpf-datagrid-on-click-event

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
