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
Farhan Shariff
NA
933
242.1k
Datatable cell to list & using string list in Legends
May 31 2014 7:49 PM
I am comparing values in datatable column , I want to store the
string in table7.Rows[yy]["Die_ID"] in to a string array.how to solve this
string[] a = null;
if(table7.Columns.Contains(colx))
{
for (int yy=0; yy<table7.Rows.Count; yy++)
{
double tval = double.Parse(table7.Rows[yy][colx].ToString());
if (tval < lower || tval > upper)
{
a[yy] = table7.Rows[yy]["Die_ID"].ToString();
//Error I want to store the string values in a string array :Object reference not set to an //instance of an object.
}
}
}
Reply
Answers (
15
)
Correction Req For Combo box code
getting only 1 value