摘要:
今天做往gridview列里动态添加textbox控件 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { for (int i = 1; i <Gvd_Table.Columns.Count; i++)//序号以外的列 { TableCell tc = e.Row.Cells[i]; if (tc.Text.Trim() == " ")//判断只要地区或区块不为空就跳过 { TextBox tb = new TextBox(); tb.ID = 阅读全文