hi,I have created a datagrid that shows some rows. One of the columns is called amount, I want to be able to call afunction from the from the datagrid to sum (amount) and put the result in the footer. here what I have done,
I put the following in the Template column
<FooterTemplate>
<# CalTotal(DataBinder.Eval(Container.DataItem, ))%>
</FooterTemplate>
I then created a function like
Public Function CalTotal()
'I guess here where I should write the code to sum the amount field, but how?
End Function
I appreciate your help, I am not even know if I am in the right track?
thanks
EHx
I put the following in the Template column
<FooterTemplate>
<# CalTotal(DataBinder.Eval(Container.DataItem, ))%>
</FooterTemplate>
I then created a function like
Public Function CalTotal()
'I guess here where I should write the code to sum the amount field, but how?
End Function
I appreciate your help, I am not even know if I am in the right track?
thanks
EHx