Click here to Skip to main content
11,505,412 members (67,832 online)
Click here to Skip to main content
Add your own
alternative version

Accessing Value from System.Data.DataTable : Tip

, 27 Oct 2010 CPOL 5.6K 2
Technically, the best approach here for speed and flexibility is to do the following:public class TestClass{ private const string EMP_ID = "EmpId"; public void MyTestMethod() { //GetData fetches data from the database using a SQL query DataTable dt =...



Compare Revision Minor Date Status Editor
2 - publicly available No 27-Oct-10 9:44 Available Andrew Rissing
1 No 26-Oct-10 10:19 Composing Andrew Rissing


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


About the Author

Andrew Rissing
Software Developer (Senior)
United States United States
Since I've begun my profession as a software developer, I've learned one important fact - change is inevitable. Requirements change, code changes, and life changes.

So..If you're not moving forward, you're moving backwards.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150520.1 | Last Updated 27 Oct 2010
Article Copyright 2010 by Andrew Rissing
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid