Hi there,
You need to handle the DataGrid's ItemDataBound event. This event is raised
every time an item is bound to the data source. You can then have a variable
that adds up all the values in this event and display it in the footer by
handling the ItemCreated event. Check the documentation, the arguments of
these events include the item, so you can add a label control to display the
total at the footer.
Good luck!
--
Juan Romero
-----------------------------------------
The successful person has the habit of doing the things failures don't like
to do.
E.M. Gray
"tascien" wrote:
I am just wondering... can footertemplate hold data?
b/c i want to show the sum of my Invoice in footer template. How can i
do that? I could add the sum to the dataset like this:
SumColumn = new DataColumn("SumColumn",Double,"Sum(ItemTotal)")
ds.tables(0).columns.Add(SumColumn)
if i do:
<%#DataBinder.Eval(Container,"DataItem.SumColumn") %> inside the footer
template, i get nothing...
Any help?