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
halifaxdal
NA
9
0
How to add a bool value to a datarow?
Oct 22 2005 12:04 AM
Hi all,
I wonder how to add a bool value (true/false) to a datarow, I tried the following two ways, both don't work:
1.
bool
selected =
false
;
DataRow dr = ds.Tables[0].NewRow();
dr[0] = selected;
ds.Tables[0].Rows.Add(dr);
2.
item = false;
ds.Tables[0].Rows.Add(Item);
What's the problem?
Thanks.
Reply
Answers (
1
)
Display XML as simple text on ASP.NET page
compiling and executing a code at runtime