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

Add event handler for HyperlinkOpening

2 Answers 138 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bertha
Top achievements
Rank 1
Bertha asked on 01 Jun 2016, 03:15 PM

How do I add event handler of HyperlinkOpening for hyperlink column field in C#?  I saw the following code but I cannot link it to radgridview.  I can add event via property windows for radgridview but don't know how to do it for 1 column only. Thanks.

 

Private Sub RadGridView1_HyperlinkOpening(sender As Object, e As HyperlinkOpeningEventArgs)
    e.Cancel = True

    Dim f As New Form()
    f.Text = e.Column.Name + " " + e.Row.Index
    f.Show()

End Sub

2 Answers, 1 is accepted

Sort by
0
Bertha
Top achievements
Rank 1
answered on 01 Jun 2016, 03:20 PM
Sorry, just found the event in the property window.  Thanks.
0
Hristo
Telerik team
answered on 01 Jun 2016, 03:55 PM
Hello Bartha,

I am glad that you have resolved the issue. 

The event is raised by RadGridView and you can either subscribe to it in the Visual Studio designer or at run-time. Additional information is available here: GridViewHyperLinkColumn.

I hope this helps. Please let me know if you need further assistance.

Regards,
Hristo Merdjanov
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms. For more information check out this blog post and share your thoughts.
Tags
GridView
Asked by
Bertha
Top achievements
Rank 1
Answers by
Bertha
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or