Are you using a DataSet or DataTable to bind to datagrid?? Or
datareader??
If you are using a DataSet or DataTable then you can do the following:
intTotal = dataTable.Compute("SUM(columnName)", null);
would get the total of that column into that variable. Then you can
display the value wherever you want to.
Rajendra.
-----Original Message-----
From: Karthick Kumar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 12, 2004 6:25 AM
To: [EMAIL PROTECTED]
Subject: [AspNetAnyQuestionIsOk] Display total
Hi,
I have a datagrid which has the Average daily cost in it. I want to
display
the total (probably in a label control) of the Average Daily Cost for
the
'n' number of records available in the datagrid, how do I do it?
Please help, thanks.
Regards,
Karthick
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
ADVERTISEMENT
click here
<http://us.ard.yahoo.com/SIG=129b3epuu/M=295196.4901138.6071305.3001176/
D=groups/S=1705006764:HM/EXP=1097663150/A=2128215/R=0/SIG=10se96mf6/*htt
p:/companion.yahoo.com>
<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=group
s/S=:HM/A=2128215/rand=633080425>
_____
Yahoo! Groups Links
* To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]
cribe>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service <http://docs.yahoo.com/info/terms/> .
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/