I have two Data table Folder_table and folder_filter. Both the table has two columns FolderName
and FolderDateTime
. In the Folder_Table i have values like below
FolderName FolderDateTime
Test1 29/3/2014
Test2 20/12/2014
Test3 4/2/2014
test5 9/6/2014
I am using the below coding to copy 2 rows from Folder_table to folder_filter
folder_filter = Folder_table.Rows.Cast<System.Data.DataRow>().Take(2).CopyToDataTable();
I want to order by descending in FolderDateTime
column. how to do that. PLease help
.OrderByDescending()
method? – Basic Jul 14 '14 at 15:12