0
這是從Splatt表返回數據列表的代碼。LINQ SUM,AVERAGE
Public Function GetListofProduct(ByVal pCOde As String, ByVal date1 As DateTime, ByVal date2 As DateTime) As List(Of Splatt)
Return (From e As Splatt In TradingCTX.Splatts Where e.plCode.Contains(pCOde) And (e.plDate = date1 Or e.plDate = date2)).ToList
End Function
我真的需要幫助獲得價格的總和並將其轉移到另一個gridview。
謝謝@Michael Z. – jezz