Hi all,
is it possible to create a template field with link option using codebehind.
Hi all,
is it possible to create a template field with link option using codebehind.
Yes! Append handler OnRowDataBound
MyRowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Controls.Add(new MyControl(...
Here is a very good example - http://stackoverflow.com/questions/944216/dynamically-change-gridview-item-template