I'm just learning Telerik and am fairly new with C# and VS as well, so my apologizes for how simple a question this must be.
I have two tables: Order_Header and Order_Details. Every order has a single entry in Order_Header and multiple entries in Order_Details (one for each product purchased).
Order_Header: [OrderID], [OrderDate], [OrderNumber], [Taxes], [ShippingCost], [OrderTotal], [GST], [PST], [HST]
Order_Details: [DetailID], [OrderID] (ref Order_header), [ProductID], [Quantity], [SellingPrice]
Order_Details: [DetailID], [OrderID] (ref Order_header), [ProductID], [Quantity], [SellingPrice]
My report is grouped by [Order_Header].[OrderNumber] (unique to each individual order).
The Group Header shows [Order_Header].[OrderNumber], [Order_Header].[ShippingCost], .[GST], .[PST], .[HST]
The report details shows [Order_Details].[ProductID], [Order_Details].[Quantity], [Order_Details].[SellingPrice]
Ideally the report footer will summarize Quantity, Selling Price, ShippingCost, GST, PST, HST
My challenge is this: If i do SUM(ShippingCost) in the report footer, it sums it once per every item in Order_Details, rather than once per Order_Header. Is there a solution to this? Sum by group or somesuch? I'm also not above accumulating a variable in the codebehind if someone is kind enough to explain how.
Thanks!
P.S. Windows 7, Visual Studio 2008, Telerik Reporting Q1 2010, and Chrome/Firefox/Opera/Safari/IE for browser