Click here to Skip to main content
13,408,750 members (46,869 online)
Click here to Skip to main content
Add your own
alternative version

Stats

2.7K views
2 bookmarked
Posted 27 Oct 2010

Accessing Value from System.Data.DataTable : Tip

, 27 Oct 2010
Rate this:
Please Sign up or sign in to vote.
int empId = dt.Columns[EMP_ID].Ordinal;...int empId = Convert.ToInt32(dRow[empId]);
int empId = dt.Columns[EMP_ID].Ordinal;
...
int empId = Convert.ToInt32(dRow[empId]);

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

A.J.Wegierski
Web Developer
Poland Poland
Complicated

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02-2016 | 2.8.180212.1 | Last Updated 27 Oct 2010
Article Copyright 2010 by A.J.Wegierski
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid