Ali Hassan
Ali Hassan

Reputation: 339

Telerik HyperLink Handler

How to add hyperlink handler handler so that I may redirect to any page on the internet? The hyperlinks are in the RadGridView. The value of link, like www.google.com, are coming from database. I'm using winform telerik.

Upvotes: 2

Views: 199

Answers (1)

jaredbaszler
jaredbaszler

Reputation: 4819

You must register to the HyperlinkOpening event of the RadGridView. And you must also make the column holding the hyperlink(s) a column of type GridViewHyperlinkColumn.

Once you have the column created you can register as such:

radGridView.HyperlinkOpening += radGridView_HyperlinkOpening;

private void radGridView_HyperlinkOpening(object sender, HyperlinkOpeningEventArgs e)
{
    Process.Start("www.google.com");
}

Upvotes: 2

Related Questions