Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Object reference error while getting datatable from splistitemcollection

$
0
0
I am getting “Object reference not set to an instance of an object” when we try to get datatable from itemcollection

SPListItemCollection resultItems=list.GetItems(query);

DataTable resultTable=resultItems.GetDataTable();  // Exception occurs here

Any help would be appreciated.

Viewing all articles
Browse latest Browse all 7589

Trending Articles