DataGridView SortOrder property not same type as parameter to DGV Sort method
Dim dataGridViewColumnAs DataGridViewColumn Dim directionAs System.ComponentModel.ListSortDirection Dim dataGridView1As DataGridView dataGridView1.Sort(dataGridViewColumn, direction) |
The SortOrder property of the DataGridView is of type
System.Windows.Forms.SortOrder.
The question I have is why are they not the same? These
enumerations appear to have different underlying values. Thus,
you can't simply assign one to the other. If you want to track
the current sort order of a DGV you have to convert between
the two types. Is there some reason why they can't be the
same type?

