how to get column values as array from datatables 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();