|
发表于 2020-1-31 19:18:01
|
显示全部楼层
在datagrid的ItemDataBound事件裡,先判斷是不是最後一行,如果是的話,就替換裡面的內容:
e.Row.Cells[0].Text=n;
e.Row.Cells[1].Text='<asp:TextBox ID="TextBox1" runat="server" />';
e.Row.Cells[2].Text='<asp:TextBox ID="TextBox2" runat="server" />';
.........
|
|