日期:2014-05-18 浏览次数:20455 次
Button btn =new Button ();
btn.ID ="btn1";
btn.Text ="btn";
Label lbl =new Label ();
lbl.ID="lbl1";
lbl.Text ="lbl";
Literal literal =new Literal ();
literal.Text="<br>";
GridView1.Rows[1].Cells[5].Controls.Add(btn);
GridView1.Rows[1].Cells[5].Controls.Add(literal);
GridView1.Rows[1].Cells[5].Controls.Add(lbl);