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
dhriti rao
NA
4
2.6k
i should get the items in a list thats y i wrote this code but i m getting error and dont understood what is the problem?
Dec 18 2012 4:52 AM
List
<
OrderDetail
> objOrderDetail =
new
List
<
OrderDetail
>();
//Todo get all the grid order
foreach
(
GridViewRow
gr
in
GridView.Rows)
{
objOrderDetail.Add(
new
OrderDetail
{
Code =
int
.Parse(((
Label
)(gr.FindControl(
"lblcode"
))).Text),
Descritpion = ((
Label
)(gr.FindControl(
"lbldescription"
))).Text,
Rate =
int
.Parse(((
Label
)(gr.FindControl(
"lblrate"
))).Text),
Qty =
int
.Parse(((
Label
)(gr.FindControl(
"lblqty"
))).Text),
Total = ((
Label
)(gr.FindControl(
"lbltotal"
))).Text
});
}
Reply
Answers (
1
)
how to get system directory in c# using Tree view in asp.net?
Progressbar issue when generating excel report