This is a migrated thread and some comments may be shown as answers.

events & textboxes

1 Answer 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Niki Sams
Top achievements
Rank 1
Niki Sams asked on 09 Aug 2010, 04:54 PM
I read the "Understanding Events" article and have been researching different posts on this subject and I'm still a little confused.  I want to use the runtime value of txtElement in a query to return an amount.  I then want to set the value of txtEncumbrance to the amount that is returned.

All of my fields are in the group footer section.  But I know I need to get the value of my text box in the ItemDataBound event of my text box first using the sender object.  Should all my code go there?  Or should I put the rest of my code in the group footer ItemDataBound section? 

Please see attached files.  Thanks for your help!

1 Answer, 1 is accepted

Sort by
0
Niki Sams
Top achievements
Rank 1
answered on 09 Aug 2010, 06:29 PM
Never mind...I think I figured it out on my own.  The attached code is working.  However, my numbers are not being formatted as currency even thought the controls have {0:C} in the format property. Any ideas?



Tags
General Discussions
Asked by
Niki Sams
Top achievements
Rank 1
Answers by
Niki Sams
Top achievements
Rank 1
Share this question
or