The user right clicks in the grid and then selects an option from the context menu. If they choose "sort" it will sort the column which they clicked. This method works but it's slow. If anyone has a better method please let me know.
Cheers
CODE
Dim hitColumn As DataGridViewColumn
Private Sub SortToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SortToolStripMenuItem.Click
dataGrid.Sort(hitColumn, System.ComponentModel.ListSortDirection.Ascending)
End Sub
Private Sub dataGrid_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles dataGrid.MouseUp
Dim hit As DataGridView.HitTestInfo = dataGrid.HitTest(e.X, e.Y)
If e.Button = Windows.Forms.MouseButtons.Right Then
If hit.Type = DataGridViewHitTestType.Cell Then
hitColumn = dataGrid.Columns(hit.ColumnIndex)
End If
End If
End Sub