CType(DataGridView1.Rows(0).Cells(0).Value, DataGridViewLinkCell).Value = "Click"
CType(DataGridView1.Rows(0).Cells(0), DataGridViewLinkCell).Value = "Click"
protected void grdData_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { HyperLink link = new HyperLink(); link.Text = "This is a link!"; link.NavigateUrl = "Navigate somewhere based on data: " + e.Row.DataItem; e.Row.Cells[ColumnIndex.Column1].Controls.Add(link); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)