C
C
cats_is_cool2020-10-30 22:59:56
C++ / C#
cats_is_cool, 2020-10-30 22:59:56

Sorting datagridview. How to sort a column where datasource is a dictionary?

So, there is a dictionary type dictionary which I convert to ToArray () in order to put it in the datasource, how do I sort the values ​​in ascending order in the second column (that is, by int)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
freeExec, 2020-10-30
@freeExec

dictionary.Values.OrderBy(v.VtoroyStolbecInt).ToArray();

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question