This is a migrated thread and some comments may be shown as answers.

Handle GridViewDynamicHyperlinkColumn Error

1 Answer 17 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Loris
Top achievements
Rank 1
Loris asked on 12 Apr 2018, 02:59 PM

Dear,

I'm using RadGrid to display a filename and a filepath. 

Everything work fine (capture.PNG) when i click on the filename. The document open, but when i change the file name or i delete the file on my desktop, my program crash...

How can i handle this error?

Regards,

 

                    GridViewDataColumn cFullCompanyName = new GridViewDataColumn();
                    GridViewDataColumn cFileName = new GridViewDataColumn();
                    GridViewDynamicHyperlinkColumn cFilePath = new GridViewDynamicHyperlinkColumn();

                    cFullCompanyName.DataMemberBinding = new Binding("FullCompanyName");
                    cFileName.DataMemberBinding = new Binding("FileName");
                    cFilePath.DataMemberBinding = new Binding("FilePath");

                    cFilePath.NavigateUrlMemberPaths = "FilePath";

                    documentPage.gvDocument.Columns.Add(cFullCompanyName);
                    documentPage.gvDocument.Columns.Add(cFileName);
                    documentPage.gvDocument.Columns.Add(cFilePath);

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 17 Apr 2018, 07:59 AM
Hi Loris,

I tested the behavior of GridViewDynamicHyperlinkColumn with couple of assembly versions and was not able to replicate such any exception. Attached to my reply you can find the sample application I used for testing. Can you please take a look at it?

Regards,
Stefan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Loris
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or