I have a DataTable that contains a single row. I want to convert this DataTable values into a string array such that i can access the column values of that DataTable through
If you would like to use System.Data instead of System.LINQ, then you can do something like this.
List BrandsInDataTable = new List();
DataTable g = Access._ME_G_BrandsInPop();
if (g.Rows.Count > 0)
{
for (int x = 0; x < g.Rows.Count; x++)
BrandsInDataTable.Add(g.Rows[x]["Name"].ToString());
}
else return;