I have to get all the field (column) values in an array from a SharePoint list. Right now I am looping through all the items in the list and creating an array. But it is very inefficient if I have large number of items.
What would be the most efficient way to get all the field (column) values in an array from SharePoint List?
Update 1: The array values are further used in the code and are not displayed to end user.
SPList.GetDataTable()
fetches me the data table. But then I cannot find any method in the DataTable Class that will return the column values in array. Or am I missing something here? Please elaborate what are you referring to.