only functions when focused in the first column

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: May 2005
Posts: 19
Reputation: Lacuna is an unknown quantity at this point 
Solved Threads: 0
Lacuna's Avatar
Lacuna Lacuna is offline Offline
Newbie Poster

only functions when focused in the first column

 
0
  #1
May 19th, 2005
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:--------------------------------------------------------------------------------
  1. Private Sub Auth_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGrid1.KeyDown
  2. ' Determine whether the key entered are the A+Alt keys
  3. If e.KeyCode = Keys.A AndAlso (e.Alt) Then
  4. Me.DataGrid1(DataGrid1.CurrentRowIndex, 7) = 1
  5. RefreshRow(DataGrid1.CurrentRowIndex)
  6. End If
  7. End Sub
  8.  
--------------------------------------------------------------------------------

Any help is appreciated. Thanks

~ Lacuna
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC