I have this kind of datatable:
Name | CategorieID | FullCategorie_ID
---- ------------- ----------------
A 1 12
B 1 13
C 5 14
D 3 15
E 6 16
I want to save the values of column 'NAME' in an array, I am using this to get the values of a row. E.g. To get the values of first row I can use following code.
var stringArr =datatable1.Rows[0].ItemArray.Select(x => x.ToString()).ToArray();
But I don't know how to get all the values of only first column.