473,747 Members | 2,748 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Keypress Event in DataGrid

Is there anyway to cause a KeyPress event in a datagrid cell? The only way
I get a keypress event is if none of the cells are selected. I was hoping
to have the program respond to a certain keypress while in a cell of a
datagrid but it doesn't fire the keypress event.
Nov 21 '05 #1
3 3069
Terry,

Can you look for your question on this page, when it is not here and it is
about a datagrid it will mostly be hard to find

http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp

I hope this helps?

Cor

"Terry Olsen" <to******@hotma il.com>
...
Is there anyway to cause a KeyPress event in a datagrid cell? The only
way I get a keypress event is if none of the cells are selected. I was
hoping to have the program respond to a certain keypress while in a cell
of a datagrid but it doesn't fire the keypress event.

Nov 21 '05 #2
Hi,

Maybe this will help.
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q836q

Ken
------------------
"Terry Olsen" <to******@hotma il.com> wrote in message
news:O6******** ******@TK2MSFTN GP15.phx.gbl...
Is there anyway to cause a KeyPress event in a datagrid cell? The only way
I get a keypress event is if none of the cells are selected. I was hoping
to have the program respond to a certain keypress while in a cell of a
datagrid but it doesn't fire the keypress event.

Nov 21 '05 #3
Ken,

I did not know that you was that active on saterday so early for you.

Than I had let this question open for you

:-)

Cor

"Ken Tucker [MVP]" <vb***@bellsout h.net>
...
Hi,

Maybe this will help.
http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q836q

Ken
------------------
"Terry Olsen" <to******@hotma il.com> wrote in message
news:O6******** ******@TK2MSFTN GP15.phx.gbl...
Is there anyway to cause a KeyPress event in a datagrid cell? The only
way
I get a keypress event is if none of the cells are selected. I was hoping
to have the program respond to a certain keypress while in a cell of a
datagrid but it doesn't fire the keypress event.

Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5881
by: john sutor | last post by:
When moving up and down with the arrow keys on my DataGrid, I cannot get either the Keypress, KeyUp or KeyDown events to respond. I am putting breakpoints in to capture the event but they never get fired. Any input will be helpful. JOhn
1
1616
by: Gidi | last post by:
hello how can i make a different keypress event for each coulmn in dataGrid (in C#, windows application) to whom i need to register the event?? thank you...
3
7378
by: Darryn Ross | last post by:
Hi, I am trying to catch the KeyPress event on my datagrid but it isn't working... i have also tried registering the handler with the event like this... dgGLBatch.KeyPress += new KeyPressEventHandler(dgGLBatch_KeyPress); but nothing changed. I was wondering wether a custom table and column style might have an effect on how this works???
10
27875
by: Tim Frawley | last post by:
I am attempting to detect a Shift+Tab in the KeyPress event for back navigation on a control that doesn't support this method. Does anyone have any ideas how to compare e.KeyChar to a ShiftTab? Tim
4
4531
by: Tom | last post by:
I have a VB.NET user control that I wrote - this control has three or four other controls on it (textbox, combobox, datetime picker, etc). Now, whenever the control is on a form and the user enters anything into the textbox (for instance) I trap the keypress event to handle some stuff (i.e. if it is an enter key, etc). Now, once I am done with handling the keypress event for the textbox, I then need to pass that keypress event BACK to the...
0
1396
by: LCH | last post by:
hi i would like to know how to capture a datagrid keypress event. I have form contains of a datagrid with 5 rows and 5 colums and a button. When i press on the enter button at the last row n column in the datagrid, i would like the set focus go to the button. how can i do it? Thank you .
2
5557
by: chatelain | last post by:
Ok a couple things I've got going: On the DataGrid1_CurrentCellChanged I add a button control to the datagridtextbox. This occurs when a mouse click happens inside the cell or the cursor enters the cell. I'm trying to figure out how to capture the Enter key so to run the buttoncontrol click function. I can get this to work when the datagrid only is activated (by clicking on the whitespace of the grid) but of course it won't work when the cursor...
1
2322
by: caryl9999 | last post by:
I'm unable to fire the keypress event using VB.NET. I use Murach's book and have tried the examples provided and still the keypress event doesn't fire. What am I doing wrong? Is there an Import statement that's needed to fire this event for the datagrid, text box, list box, etc?
6
4573
by: mbewers1 | last post by:
I've never handled keysroke events before and I would like to implement a Return keystroke event in a Windows form to bring up a list of items in a datagrid as well as habing a search button in the form. With the help of a tutorial, I have coded the following event: private void ReturnResults(object o, KeyPressEventArgs e) { char c = e.KeyChar; if (c == (char) Keys.Return) {
0
9522
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9222
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8231
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6790
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6067
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4588
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4860
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2771
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.