|
Subject:
|
Capturing Keyup & KeyDown in a Datagrid
|
|
Posted By:
|
SupaHoopsa
|
Post Date:
|
10/7/2004 9:42:52 AM
|
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.
|
|
Reply By:
|
stu9820
|
Reply Date:
|
10/7/2004 11:37:49 AM
|
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 |
|
|
Reply By:
|
SupaHoopsa
|
Reply Date:
|
10/8/2004 2:41:45 AM
|
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
|
|
Reply By:
|
stu9820
|
Reply Date:
|
10/11/2004 3:40:22 PM
|
Can you post your code?
|