I am developing a project in SharePoint 2010.
My requirement is to get an empty DataTable but with column names in it from SharePoint List.
The .GetDataTable() method returns only if it has a value.
So basically I need a structure of the list in a DataTable.
This should give you an empty datatable if the GetDataTable does not retrieve column information.