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
Mursaleen Hassan
NA
22
4.3k
How to add Dataset Rows stored into class variable through L
Dec 23 2018 11:14 AM
How to Dataset Rows stored into scoop_Info class variables because i have a Crystal Report and i wants CR parameter get scoop_Info class variables data. Thanks
scoop_Token_Report crystal_Report =
new
scoop_Token_Report();
List
_List =
new
List
();
string
query =
"SELECT `name`, `quantity` FROM `tbl_scoop_customer` WHERE `odr_id` = 5"
;
DataSet ds = method_Class.method_Class.dataSet_Record(query);
foreach
(DataRow dr
in
ds.Tables[0].Rows)
{
_List.Add(
new
scoop_Info
{
Quantity = Convert.ToInt16(dr[
"quantity"
].ToString()),
Description = dr[
"name"
].ToString(),
});
}
class
scoop_Info
{
public
int
Quantity {
get
;
set
; }
public
string
Description {
get
;
set
; }
}
Reply
Answers (
2
)
Never get a Verification Email to Activate my Account
Control in count of TPL active tasks