[問題] GridView 加入一列(但沒有重新繫結)
我有一個 GridView 已經繫結了一個資料來源
現在我想要新增一列(Row)資料
但是這筆資料只是加到這個 GridView 的屁股下多一列這樣
還沒有寫回到資料來源
我已經知道要加入一個文字的話可以用
GridViewRow tmp = new GridViewRow();
TableCell cell2 = new TableCell();
cell2.Text = "123";
tmp.Control.Add(cell);
GridView.Controls[0].Controls.AddAt(...,tmp);
我想要也新增 "選取" 按鈕(SelectButton)
卻不能這樣新增,請問要怎麼辦????
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.21.244
推
12/25 05:54, , 1F
12/25 05:54, 1F
→
12/28 16:24, , 2F
12/28 16:24, 2F