Winforms datagridview sorting using LINQ?

OK, problem sorted! :) found the following link: SortableBindingList... (my comment is at the bottom with converted C# working code). Now all my query methods that return List simply get used like this: SortableBindingList sortedTasks = new SortableBindingList( DUtasks.

GetUserTasks( User.Current. UserID ) ); dgvTasks. DataSource = sortedTasks; dgvTasks.

Sort( colTaskDue, ListSortDirection. Ascending ); Hope this helps someone!

Not sure if it will help but that is designed to handle ordered LINQ results.

HI robber. No unfortunately that does not work. I already have tried an "orderby" appended to the query with no result.

I got the sort property in each column set to automatic (oh, btw, I hjave chosen not to autogenerate columns, if that makes a diff. ), so I know that as soon as I have it right the SortGlyph is supposed to appear, right? – Shalan Oct 13 '09 at 16:57.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions