|
-
Jul 1st, 2008, 06:27 AM
#1
Thread Starter
Fanatic Member
[2008] DatagridView Cell keypress
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,
-
Jul 1st, 2008, 08:56 AM
#2
Hyperactive Member
Re: [2008] DatagridView Cell keypress
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!
-
Jul 1st, 2008, 10:02 PM
#3
Thread Starter
Fanatic Member
Re: [2008] DatagridView Cell keypress
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|