c# - Fill DataTable from LinqDataSource -


how obtain datatable linqdatasource?

i have found datatableextensions.copytodatatable() method, can't work out how use linqdatasource.

you can do

    ienumerable<datarow> query = ...;     datatable.datasource = query.copytodatatable<datarow>(); 

Comments

Popular posts from this blog

iphone - Request for member 'uitextfield' in something not a structure or union? -

Cursor error with postgresql, pgpool and php -

c++ - error: use of deleted function -