is there a way to catch keypress event in DataGridView Cells ?
i want to catch event when user press tab, if user move to another column using mouse..it won't be catch
any idea?
thanks,
Printable View
is there a way to catch keypress event in DataGridView Cells ?
i want to catch event when user press tab, if user move to another column using mouse..it won't be catch
any idea?
thanks,
Im not sure i completely understand you but this may help.
This will stop the user from being able to tab cells in your datagridview using the tab key:
vb Code:
Private Sub DataGridView1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridView1.KeyDown If e.KeyCode = Keys.Tab Then e.SuppressKeyPress = True End If End Sub
Let us know if this is what you wanted!
thanks mrmojorisin
This will stop the user from being able to tab cells in your datagridview using the tab key: -> hm, not exactly what i mean..
i mean if user press Tab in the Cell..it will prompt an action otherwise it will prompt nothing