LinkButton lnk = new LinkButton(); lnk.ID = "lnk"; lnk.Text = "LinkButton"; this.form1.Controls.Add(lnk); if (e.Row.RowType == DataControlRowType.DataRow) { if (string.IsNullOrEmpty(e.Row.Cells[2].Text)) { if (e.Row.Cells[1].Text == "dontselect") { lnk.Visible = true; } } }
Available Dates 27 May 2015 30 May 2015 1 Jun 2015 Emptyrow 29 May 2015 31 May 2015 2 Jun 2015
Available Dates 27 May 2015 30 May 2015 1 Jun 2015 Link button 29 May 2015 31 May 2015 2 Jun 2015
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)