3 Answers, 1 is accepted
0
Accepted

Shinu
Top achievements
Rank 2
answered on 06 Feb 2009, 04:43 AM
Hi Lars,
Try the following code snippet to add a HyperLink to the column header.
ASPX:
CS:
Thanks,
Shinu.
Try the following code snippet to add a HyperLink to the column header.
ASPX:
<telerik:GridNumericColumn UniqueName="EmployeeID" DataField="EmployeeID"></telerik:GridNumericColumn> |
CS:
protected void RadGrid1_PreRender(object sender, EventArgs e) |
{ |
foreach (GridColumn col in RadGrid1.MasterTableView.RenderColumns) |
{ |
if (col.UniqueName == "EmployeeID") |
{ |
foreach (GridHeaderItem headeritem in RadGrid1.MasterTableView.GetItems(GridItemType.Header)) |
{ |
HyperLink hyplnk = new HyperLink(); |
hyplnk.Text = "Redirect"; |
hyplnk.NavigateUrl = "http://www.google.co.in/"; |
headeritem["EmployeeID"].Controls.Add(hyplnk); |
} |
} |
} |
} |
Thanks,
Shinu.
0

Princy
Top achievements
Rank 2
answered on 06 Feb 2009, 08:14 AM
Hi Lars,
You can also refer the following help article which explains how to access cells and rows in Grid.
Accessing cells and rows
Thanks
Princy
You can also refer the following help article which explains how to access cells and rows in Grid.
Accessing cells and rows
Thanks
Princy
0

MANU
Top achievements
Rank 1
answered on 06 Feb 2009, 08:26 AM
Princy Molu,,,
Where r u?? I am in Dubaii..............I really miss uuuuu.....
MANU
Where r u?? I am in Dubaii..............I really miss uuuuu.....
MANU