2017-03-21 1 views

답변

2

당신이 이것을 달성 할 수있는이 솔루션을 참조 ASP.NET gridview footer template

+0

얻기 위해 새 열을 추가 접근 :

Dim total As Decimal = dt.AsEnumerable().Sum(Function(row) row.Field(Of Decimal)("Balance")) grdView.FooterRow.Cells(0).Text = "Balance" grdView.FooterRow.Cells(0).HorizontalAlign = HorizontalAlign.Right grdView.FooterRow.Cells(1).Text = total.ToString("Balance") 


이 예제를 참조 총 잔액, 다른 잔액과 동일한 열에 총 요약 잔액을 넣을 수 있는지보고 싶습니다. – pepe

+0

각 열의 바닥 글에 대한 내 대답을 업데이트했습니다. – Rajendra

+0

당신의 도움에 감사드립니다! – pepe

관련 문제