protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { Button btn = new Button(); //btn.Text = "preview"; e.Row.Cells[5].Controls.Add(btn); btn.CausesValidation = false; btn.Text = "preview"; Button btn1 = new Button(); //btn.Text = "preview"; e.Row.Cells[6].Controls.Add(btn1); btn1.CausesValidation = false; btn1.Text = "edit"; Button btn2 = new Button(); //btn.Text = "preview"; e.Row.Cells[7].Controls.Add(btn2); btn2.CausesValidation = false; btn2.Text = "close"; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)