944,005 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2356
  • ASP.NET RSS
May 19th, 2005
0

only functions when focused in the first column

Expand Post »
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:--------------------------------------------------------------------------------
ASP.NET Syntax (Toggle Plain Text)
  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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Lacuna is offline Offline
19 posts
since May 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: ASP.NET Engineer needed
Next Thread in ASP.NET Forum Timeline: Generate file in memory to save to local disk





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC