Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

issue while using datatable.select()

$
0
0

i need select some data from datatable as follows

dt.Select("RequestID=" + id).CopyToDataTable();//this is the actual selection statement it works fine
but when i try to pass RequestID as parameter its throwing an error.saying column name doesnt exist
here is the code which i tried

string distinct="RequestID";

tempTable = dt.Select("'"+distinct+"'='" + id).CopyToDataTable();

any pointers will be helpfull thanks in advance


Viewing all articles
Browse latest Browse all 17574

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>