Add event handler for HyperlinkOpening

3 posts, 0 answers
  1. Bertha
    Bertha avatar
    56 posts
    Member since:
    Aug 2012

    Posted 01 Jun Link to this post

    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. Bertha
    Bertha avatar
    56 posts
    Member since:
    Aug 2012

    Posted 01 Jun Link to this post

    Sorry, just found the event in the property window.  Thanks.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Hristo Merdjanov
    Admin
    Hristo Merdjanov avatar
    710 posts

    Posted 01 Jun Link to this post

    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.
Back to Top