DataGridView Sorting on multiple columns?

How can I sort my DataGridView based on three columns?
rrr333222Asked:
Who is Participating?
 
sun365Commented:
why not make a hidden column that has the columns you want to sort on concatinated and then sort on that column?
Here is how to sort on a column:
Me.DataGridView3.Sort(Me.DataGridView3.Columns("SortCol"), System.ComponentModel.ListSortDirection.Ascending)
0
 
bruintjeCommented:
Hi rrr333222,

the question on the multiple column sort can be found in the DGV FAQ here, with a large sample of code
source: http://blogs.msdn.com/jfoscoding/articles/494012.aspx

hope this helps a bit
bruintje
0
 
rrr333222Author Commented:
hummm I had seen this when I did a google search but since I don't know c/c++ this language example is not totaly clear to me.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.