c# - Filtering rows of a DataTable with the return type of a DataTable -


i filter rows of datatable , perform linq query on resulting set of rows. second query operates on datatable.asenumerable. datatable.select method returns array of datarows. there anyway perform linq query on these, or convert array of datarows datatable, can chain results of filter linq query?

while can convert resultant array of datarow objects new datatable, best bet perform linq query against datarow array. example:

var queryreturn = r in mydatarows                    (int)r["idcolumn"] == 1                   select r; 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -