Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
How to handle null value during convert a column into a string array
Michael Xie
Feb 18 2011 3:00 PM
3.3k
Reply
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!
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
image album problem
Problem with executing asp.net program