Hi all,
I am trying to detect when the onsorted event fires in a datagridview.
I want to freeze the screen on ColumnHeaderMou seClick (That's OK) and unfreeze after the sort.
(That's not OK)
CODE:
The code above works fine and to call the onsorted event I am using
CODE:
Anyone know why this is not happening? Is blocking the screen update preventing sorting?
Many Thanks
SS
I am trying to detect when the onsorted event fires in a datagridview.
I want to freeze the screen on ColumnHeaderMou seClick (That's OK) and unfreeze after the sort.
(That's not OK)
CODE:
Code:
Private Sub dgv_ColumnHeaderMouseClick _
(ByVal sender As System.Object, ByVal e As _ System.Windows.Forms.DataGridViewCellMouseEventArgs) _
Handles dgv.ColumnHeaderMouseClick
LockWindowUpdate(Me.Handle.ToInt32)
End Sub
CODE:
Code:
Public Sub dgvLabProcesses_Sorted _
(ByVal sender As System.Object, ByVal e As System.EventArgs) _
Handles dgvLabProcesses.Sorted
LockWindowUpdate(0)
End Sub
Many Thanks
SS
Comment