Hi,
Your question is outside the scope of this Community..
Kindly repost in the TechNet Forums:
https://social.technet.microsoft.com/Forums/en-US/home
Or MSDN Forums:
https://social.msdn.microsoft.com/Forums/en-US/home
Cheers.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a Visual basic Windows desktop application that uses a datagridview that is loaded with data from a data array.
I sort the first column using the code.
DataGridViewCashFlowSource.Sort(DataGridViewCashFlowSource.Columns(0), System.ComponentModel.ListSortDirection.Descending)
But I also allow want to allow the user to be able to manually change the sort order.
At one point it is important for me to know what direction the sort is before I action the selected option.
As there is only one column that is being sorted it appears that I can use the following to determine the sort order:
If DataGridViewCashFlowSource.SortOrder = SortOrder.Ascending Then
But if I had two columns that could be sorted differently how can I determine the sort order for a specific datagridview column?
Any advice would be much appreciated.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Hi,
Your question is outside the scope of this Community..
Kindly repost in the TechNet Forums:
https://social.technet.microsoft.com/Forums/en-US/home
Or MSDN Forums:
https://social.msdn.microsoft.com/Forums/en-US/home
Cheers.