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

showing hyperlink column on RadGridView

1 Answer 95 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Rajeev
Top achievements
Rank 1
Rajeev asked on 03 May 2008, 09:16 AM
Hi,

I have a win for which has 2 Tabs and each tab contains 1 button. When i select a button,it populate my RadGridview having 1 column as Hyperlink column. When user clicks on any cell on this Hyperlink column, user is redirected to another Tab having that tab button clicked. My problem is that i'm not able to add Hyperlink column (column as underline) in my RadGridView. I then tried cellclick event to redirect to another tab with its button clicked. But no success.Please help as its critical issue for me.

1 Answer, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 05 May 2008, 11:54 AM
Hi Rajeev,

Thank you for bringing this issue to our attention. Currently we are working on a hyperlink control, which will be used with our RadGridView control as well.

For the time being, you can use CommandColumn. Here is an example:

public partial class Form1 : Form 
    public Form1() 
    { 
        InitializeComponent(); 
 
        GridViewCommandColumn commandColumn = new GridViewCommandColumn(); 
        commandColumn.HeaderText = "Command column"
 
        commandColumn.Width = 100; 
        commandColumn.FieldName = "PersonID"
 
        commandColumn.UniqueName = "PersonID"
        radGridView1.Columns.Add(commandColumn); 
 
        radGridView1.CommandCellClick += new CommandCellClickEventHandler(radGridView1_CommandCellClick); 
    } 
 
    private void radGridView1_CommandCellClick(object sender, EventArgs e) 
    { 
 
        // Handle the command column click 
    } 

You can also refer to the Column Types example in our QSF.

I hope this helps. If you have any further questions, please contact us.

Regards,
Evtim
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Rajeev
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Share this question
or