convert datatable column values to array in c# code example
Example: get array from column datatable c#
datatable1.AsEnumerable().Select(r => r.Field<string>("Name")).ToArray();
datatable1.AsEnumerable().Select(r => r.Field<string>("Name")).ToArray();