Click here to Skip to main content
15,885,757 members
Articles / General Programming / Performance
Alternative
Tip/Trick

Accessing Value from System.Data.DataTable : Tip

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
27 Oct 2010CPOL 4.5K   2  
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)


Written By
Web Developer
Poland Poland
Complicated

Comments and Discussions

 
-- There are no messages in this forum --