2013-07-30 32 views

回答

0

沒有這是不可能的。相反,您可以使用FooterTemplateTextbox字段。

<FooterTemplate> 
    <asp:TextBox ID="txtemp_Name" runat="server"></asp:TextBox> 
</FooterTemplate> 
+0

如何處理RowCommand事件? – user2634428

+0

要從頁腳插入新行,然後使用命令名作爲添加或任何其他 ' ' In RowCommand: 使用下面的snippit獲取所有文本框的值。 'if(e.CommandName ==「Add」) { TextBox txtemp_name =(TextBox)gvDetails.FooterRow.FindControl(「txtemp_name」); } ' 然後atlast重新綁定gridview以查看gridview中新添加的行。 'gvDetails.DataSource = ds; gvDetails.DataBind();' 這對你很有用。 – Selva

相關問題