Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Disable ctrl key for multiple selection
posted

Hi,

How can i disable ctrl key for multiple selection? Thanks

 

Xiaojun 

  • 469350
    Offline posted

    Do you want to disable just Ctrl? Or do you want to disable multiple selection entirely? 

    If the latter, then you are looking for the SelectTypeRow property on the Override object. 

    For the former, I don't know of any easy way to do this. Maybe you can trap the BeforeRowSelected event and cancel it if the Ctrl key is down? 

  • 255
    posted
    Hi ,Possibly this part of code may be useful for you ..............

    Private Sub UltraGrid1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles UltraGrid1.KeyDown

    If e.Control Then      MessageBox.Show("CNTL is disabled")End Sub