-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: s_hashim
Message 2 in Discussion
In ItemDataBound event try this
code
If e.Item.ItemType =
ListItemType.AlternatingItem Or e.Item.ItemType = ListItemType.Item
Then
' Calcualting the totals
If Trim(DataBinder.Eval(e.Item.DataItem,
"FieldName")) <> "" Then
Dim intFieldName_1 As Integer =
DataBinder.Eval(e.Item.DataItem, "FieldName")
intFieldName_Tot += intFieldName_1
End If
ElseIf e.Item.ItemType = ListItemType.Footer Then
'fields cell number in the
DataGrid
e.Item.Cells(1).Text
= FormatCurrency(intFieldName_Tot)
End If
HTH
**********
Keep Smiling,
Regards.
Sayad Hashim Ali Kazi
Microsoft India
Community Star.
******************************
SQL Star International Ltd.
SQL House, #13,Infocity,Madhapur,
Hyderabad 500 081.
Tel: +91-40-2310 1650(Off) +91-98661 92794(HP)
http://dotnetjunkies.com/WebLog/SayadHashim/
http://SayadHashim.blogspot.com
http://www.mugh.net
******************************
-----Original Message-----
From: Gopal2098
[mailto:[EMAIL PROTECTED]
Sent: Thursday, September 16, 2004
11:33 AM
To: BDOTNET
Subject: Calculation in
datagrid
New Message on BDOTNET
Calculation in datagrid
Reply
Reply to Sender Recommend
Message 1 in
Discussion
From: Gopal2098
Hi,
I have a grid with 10 columns and iam filling the data
thro sql stored proceedure.
I need to do calculation on 10 row of 10
column . I tried to put this in Itembound event to point to
the specific column but unable to caluculate.
Can anyone help me?
Thanks
View other groups in this
category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]