rmmarsh
asked on
How to access column in a datatable
Quite a while ago, while learning C#, I wrote this snippet of code, which has been working so far. I need to get to column[6] for each row in the table and examine the contents.
How do I do this?
How do I do this?
DataTable dt = new DataTable();
FbDataAdapter da = new FbDataAdapter("SELECT * from tUploadInfo", mainForm.bookConn);
da.Fill(dt); // fill datatable
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
object ei = dt.Rows[0][6];