Click here to Skip to main content
15,896,912 members
Articles / General Programming / Performance

Accessing Value from System.Data.DataTable : Tip

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
27 Oct 2010CPOL 13.7K   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 =...

Views

Daily Counts

License

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


Written By
Architect
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.

Comments and Discussions