【发布时间】:2011-08-17 02:49:43
【问题描述】:
即目前我正在向我的网格视图添加一个页脚行,如下所示
Protected Sub gvShoppingCart_RowDataBound(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles gvShoppingCart.RowDataBound
' If we are binding the footer row, let's add in our total
If e.Row.RowType = DataControlRowType.Footer Then
e.Row.Cells(5).Text = "<strong>Total Cost:</strong>"
e.Row.Cells(6).Text = ShoppingCart.Instance.GetSubTotal().ToString("C")
End If
End Sub
我怎样才能添加更多的页脚行,即总折扣、总节省等,如上所示
【问题讨论】:
标签: asp.net