954,560 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

only functions when focused in the first column

Hi,

I have some code that only functions when im focused in the first column... what i need is to have the code execute when the cursor is in any of the columns in the current row.


visual basic code:--------------------------------------------------------------------------------

Private Sub Auth_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGrid1.KeyDown
        ' Determine whether the key entered are the A+Alt keys
        If e.KeyCode = Keys.A AndAlso (e.Alt) Then
            Me.DataGrid1(DataGrid1.CurrentRowIndex, 7) = 1
            RefreshRow(DataGrid1.CurrentRowIndex)
        End If
    End Sub


--------------------------------------------------------------------------------

Any help is appreciated. Thanks

~ Lacuna

Lacuna
Newbie Poster
19 posts since May 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You