Advertise with us

wpf datagrid on click event

Posted by  Takeshi Okada
 2961  View(s)
Rate this:

I use datagrid table on my project. One of the column of the datagrid is the path of the document according to my project. I would like to do that:

When the user clicks the path cell/hyperlink cell,

Program will get the path,

Program will open another tab.

I couldn't see the onclick event for the column, how can i do this? And also how can I switch the tabitems on the same wpf Window?

Hyper link column is that:

<toolkit:DataGridHyperlinkColumn Header="Path" Binding="{Binding path}" IsReadOnly="True" TargetName="{Binding Path=path}">

</toolkit:DataGridHyperlinkColumn >