I am doing an foreach on all columns on my DataTables row. I want to get data from a specific column but cant figure out how to do it. See code.
DataTable dt = mHandler.GetRegistrtationProgress(customer);
int column = 1;
foreach (DataColumn dc in dt.Columns)
{
string hutt = dc.ToString();
if (column == 11)
{
if (hutt.Equals("1"))
{
addSpecificPicture();
}
}
else
{
if (hutt.Equals("1"))
{
addPicture(column);
}
}
column++;
}
When i run this code I only get name on column but there must be a good method to get value? Or not?