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
Ryan Minor
NA
12
0
DataRow and Int.Parse
Aug 6 2009 9:18 AM
Say you populate a DataSet via OLE, and then create a DataTable DataTable dtSomeTable = dsSet.Tables["tblSomeTable"]; and then you get a row DataRow drFirstRow = dtCorporateDetails.Rows[0]; and then you are trying to extract an integer out of the row int someint = int.Parse(drFirstRow["somedata"].ToString()); Is this the best way to get an integer? Is there a way to test that the drFirstRow["somedata"] contains a valid integer without using a try {} and catch {} block?
Reply
Answers (
1
)
get the column data of datalist
Using Custum Table Expressions