M
moondaddy
How can I loop through all the fields in a strongly typed dataset's table
row and retrieve the name and value?
Thanks.
row and retrieve the name and value?
Thanks.
moondaddy said:How can I loop through all the fields in a strongly typed dataset's table
row and retrieve the name and value?
David Browne said:moondaddy said:How can I loop through all the fields in a strongly typed dataset's table
row and retrieve the name and value?
DataTable dt=...;
foreach (DataColumn c in dt.Columns)
{
Console.WriteLine(c.ColumnName + " " + dt[c]);
}