menu

arrow_back Sort datagridview. How do I sort the column where the datasource is a dictionary?

by
1 vote
So, I have a dictionary of the dictionary type that I convert to ToArray() to put it in a datasource, how do I sort the values in ascending order in the second column (i.e. by Int)

1 Answer

by
0 votes
dictionary.Values.OrderBy(v.VtoroyStolbecInt).ToArray();