Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
205
XamDataGrid With Hyperlink Cell
posted

Hi,

I am using an XamDataGrid in my application which is having one cell of type Hyperlink. The hyperlink cell contains network path of files which are to be downloaded on click of hyperlink.

My problem is that nothing happens when hyperlink cell is clicked.

I have worked only on Web applications so far and there just assigning path to hyperlink works. Does it work same in Windows applications as well or there is some different way to to it? I have googled this but everywhere I am getting solution to COPY file from server to local.

I dont need to copy file rather I need to give Open/Save option to user.

Please help me and let me know if you need any further information.

Regards,

Nirmit Garg

 

  • 7305
    posted

    Hello,

    You can style the CellValuePresenter of the cells that will be holding the hyperlinks using ControlTemplate with Hyperlink. I am attaching a sample that demonstrates this approach. Let me know if this works for you.

     

    Sam

    WPF_XamDataGrid_With_Hyperlink.zip