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
Michael Xie
NA
41
8k
How to handle null value during convert a column into a string array
Feb 18 2011 3:00 PM
I have a problem when i try to convert a column to a string array.
here is my code:
string
[] s =
Array
.ConvertAll<
DataRow
,
string
>(datatable.Select(),
delegate
(
DataRow
row) {
return
(
string
)row[
"columnname"
];});
error is: in the datacolumn, there is null , empty and 'none' value.
i want to my s contains only the entity not including null, empty, 'none' value.
Any help will be appreciate!
Reply
Answers (
2
)
How do I create a xml file from stored session variables
Problem with executing asp.net program