ASP.NET GridView模板列怎么取当前列中的某一个值
<asp:TemplateFieldHeaderText="修改"><ItemTemplate><ahref="#"onclick="window.open('Manpo...
<asp:TemplateField HeaderText="修改">
<ItemTemplate>
<a href="#" onclick="window.open('ManpowerUpdate.aspx?empno=<%#this.Row.Cells[0].Text.ToString()%>>','newwindow','height=400, width=600, top=200,left=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')">修改</a>
</ItemTemplate>
</asp:TemplateField> 展开
<ItemTemplate>
<a href="#" onclick="window.open('ManpowerUpdate.aspx?empno=<%#this.Row.Cells[0].Text.ToString()%>>','newwindow','height=400, width=600, top=200,left=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')">修改</a>
</ItemTemplate>
</asp:TemplateField> 展开
3个回答
展开全部
InvoiceLines[index].UnitPrice = Convert.ToDecimal(((TextBox)grvInvoiceLine.Rows[e.RowIndex].Cells[3].FindControl("tbxUnitPrice")).Text.Trim());
InvoiceLines[index].Quantity = float.Parse(((TextBox)grvInvoiceLine.Rows[e.RowIndex].Cells[4].FindControl("tbxQuantity")).Text.Trim());
InvoiceLines[index].Tax = decimal.Parse(((TextBox)grvInvoiceLine.Rows[e.RowIndex].Cells[6].FindControl("tbxTax")).Text.Trim());
InvoiceLines[index].Discount = decimal.Parse(((TextBox)grvInvoiceLine.Rows[e.RowIndex].Cells[5].FindControl("tbxDiscount")).Text.Trim());
InvoiceLines[index].Description = ((TextBox)grvInvoiceLine.Rows[e.RowIndex].Cells[2].FindControl("tbxDescription")).Text.Trim();
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询