Dear Telerik team,
I would like to achieve the following:
within the RadGrid, programmatically add a "Name" column with a hyperlink that links to a certain page. How do I achieve this programmatically?
So far I have added columns via the GridBoundColumn without much trouble:
e.g. GridBoundColumn pname2;
pname2 = new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(pname2);
pname2.DataField = "Total";
pname2.HeaderText = "Total";
However, I would like to add a column that has a hyperlink property also set. I assume I will have to use a GridTemplateColumn; i.e.
GridTemplateColumn pname;
pname = new GridTemplateColumn();
RadGrid1.MasterTableView.Columns.Add(pname);
pname.DataField = "Name";
pname.HeaderText = "Name";
....?
How do I achieve this?
Thank you
Mark