Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 7th, 2004, 09:42 AM
Authorized User
 
Join Date: Jun 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to SupaHoopsa Send a message via AIM to SupaHoopsa Send a message via Yahoo to SupaHoopsa
Default Capturing Keyup & KeyDown in a Datagrid

Can anyone tell me how to capture the Key-up & Key-down in the selection part
(left hand 'margin') of a datagrid, i.e. when navigating up and down the
datagrid using the up and down arrows.

I have tried to capture them in the "Key-UP" event, but this only seems to
work inside the contents of the datagrid.


 
Old October 7th, 2004, 11:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Can you explain your situation a little more? When you say margin are you referring to the area surrounding the datagrid?

Like this:
____________
| margin here
|m _______________
|a |datagrid here
|r |
|g |
|i |

 
Old October 8th, 2004, 02:41 AM
Authorized User
 
Join Date: Jun 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to SupaHoopsa Send a message via AIM to SupaHoopsa Send a message via Yahoo to SupaHoopsa
Default

Yes that's it, the 'selection' margin on the left hand side of the datagrid. In this 'margin' there is normally a black > indicatiing which row is selected. I think it's also known as the row header. It's a shame I can't post an image on this forum.

I can capture the mouse-up event when the user selects a new row, but what I can't seem to capture is the key-up (or down or press) event if the user naviagates up and down the datagrid using the up & down keys.

On another forum, someone suggested using the form key up/down event, but this doesn't seem to work for me either (unless of course I am coding this bit wrong which is entirely possible).

Any

 
Old October 11th, 2004, 03:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Can you post your code?






Similar Threads
Thread Thread Starter Forum Replies Last Post
keydown/press r.parolari BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 March 17th, 2006 09:34 AM
KeyUp doesn't work on Form bmains Pro VB.NET 2002/2003 2 June 5th, 2005 05:24 AM
With SendInput, KEYEVENTF_KEYUP makes no keyup EMHmark7 Pro VB.NET 2002/2003 0 November 22nd, 2004 05:56 PM
Capturing the coordinates of a DataGrid CELL thomaz C# 1 November 18th, 2004 05:43 PM
Capturing the content of a DataGrid Cell??? thomaz C# 1 November 12th, 2004 10:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.