Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / programming / performance

Accessing Value from System.Data.DataTable : Tip

0.00/5 (No votes)
27 Oct 2010CPOL 4.6K  
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)