or

CustomAggregate event procedure but the problem is as I read on this case the Result put in e.Result ! but I have 7 coulmns and each one have its own aggregation and different summation so how can I manage the CustomAggregate with more than one coulmn in my grid ? how I put the Result of each coulmn to its footer ?
Please help and advice me..
Thanks
Ban


| <?xml version="1.0" encoding="utf-8" ?> |
| <Menu> |
| <Reports> |
| <Item Value="Preview" Text="Preview" ImageName="Preview" /> |
| <Item Value="Print" Text="Print" ImageName="Print" /> |
| <Item Value="Export" Text="Export" ImageName="Export"> |
| <Item Value="ExportCSV" Text="CSV Format" ImageName="Export" /> |
| <Item Value="ExportPDF" Text="PDF Format" ImageName="Export" /> |
| </Item> |
| </Reports> |
| </Menu> |
| Public Shared Function GetToolbar(ByVal Type As MenuType) As RadToolBar |
| Dim FilePath As String = "~/App_Data/Menus.xml" |
| Dim xPath As String = "/Menu/Reports/Item" |
| Dim xmlMenu As New XmlDataSource |
| With xmlMenu |
| .DataFile = FilePath |
| .XPath = xPath |
| .DataBind() |
| End With |
| tlb = New RadToolBar |
| With tlb |
| .DataSource = xmlMenu |
| .DataBind() |
| End With |
| Return tlb |
| End Function |
| Private Shared Sub tlb_ButtonDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.RadToolBarButtonEventArgs) Handles tlb.ButtonDataBound |
| With e.Button |
| Dim element As XmlElement = DirectCast(.DataItem, XmlElement) |
| If element.HasAttribute("Value") Then .Value = element.Attributes("Value").Value |
| If element.HasAttribute("Text") Then .Text = element.Attributes("Text").Value |
| If element.HasAttribute("ImageName") Then .ImageUrl = GetImageURL(element.Attributes("ImageName").Value) |
| End With |
| End Sub |