TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mark Uy
NA
130
0
newbie question
Dec 2 2009 5:46 AM
i have a button that will extract 2 columns from a selected row (the button is not a buttonfield btw, its a standalone asp button).
the first column was easy as the datatypes were string. the second one is a little tricky (for me that is) as im trying to extract the "unit price" from the selectedrow (gridview1.selectedrow.cells[5]) in my case. im using a label that will display the cumulative unit price from all the selected rows
heres a code that i was trying but as obvious, it has problems with datatypes.
int invoicetotal;
int unitprice;
unitprice = GridView1.SelectedRow.Cells[5];
invoicetotal = invoicetotal + unitprice;
Label3.Text = invoicetotal;
what i want is that every time i click on the button, the label will display the total amount of the prices that were selected.
thanks.
Reply
Answers (
13
)
JIT Compiler
Error in wacom pressure level