lv.Items.SortDescriptions.Clear();
SortDescription sd = new SortDescription(sortBy, direction);
lv.Items.SortDescriptions.Add(sd);
lv.Items.Refresh();
lv is bound to a LINQ queryresult
I found examples using other bindingsources and then I replaced those with LINQ (over SQL) and the listview doesn't show sorting. I understand that I can change the LINQ query to get a sorted result and then rebind - but should that really be nessecery ?
Thankful for suggestions