Click here to Skip to main content
12,881,367 members (27,211 online)
Click here to Skip to main content
Add your own
alternative version

Stats

2.3K views
2 bookmarked
Posted 27 Oct 2010

Accessing Value from System.Data.DataTable : Tip

, 27 Oct 2010 CPOL
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...

Pro

Comments and Discussions

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