I've a little problem on a LINQ query to group and order my datatable. I'm on a winforms 3.5 project with datagrid control (I know that isn't a very helpful control but i've no choice to change that :( ... unfortunately)
So, How can I make this custom order with LINQ ?
For example :
Name | Age |
Test 38
Test-1 20
Test-2 18
Test2 40
Test2-1 24
Test2-2 16
Sort by age and keep hierarchy of name
exemple sort by descending
Name | Age |
Test2 40
Test2-1 24
Test2-2 16
Test 38
Test-1 20
Test-2 18
I need to put the reslut of this query in a datatable to rebind my datagrid!