c# - Why does CopyToDataTable unsort the DataRow Array -


i've got datatable need sort , place datatable. on face of easy below:

 datatable sortme = getdata();  sortme.select("col1 = 'something'", "sortbyme asc").copytodatatable(); 

however, i've found pass datarow array created select() copytodatatable(), new datatable no longer sorted sortbyme.

how fix without creating loop push each datarow datatable? , causing sorting lost?

there question asked , solved how sort datatables row, please @ here, might you:

sorting rows in data table


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -