473,411 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,411 software developers and data experts.

datagrid & KeyUp event

hello

I have an ordinary datagrid in a vb.net application which displays
products. I used the keyup-event to show a dialogform where product
information can be edited. This works ok. But if the user then presses
enter to save the changes in this dialogform, the keyup-event of the
datagrid fires again.
How can I prevent this? This way you can only close the dialogform by
clicking on OK, which is not very user friendly.
I hope someone can help me, or at least give me a hint on how to solve
this...

Regards

Peter
Nov 21 '05 #1
2 1281
Peter,

I think that this is the one, otherwise have a look at the rest of this
datagrid faqs

http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp#q791q

I hope this helps?

Cor
Nov 21 '05 #2
Cor Ligthert wrote:
Peter,

I think that this is the one, otherwise have a look at the rest of this
datagrid faqs

http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp#q791q

I hope this helps?

I did find a lot of useful help in there, but not for this particular
problem.

Thx anyway

Peter
Nov 21 '05 #3

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

Similar topics

0
by: Supa Hoopsa | last post by:
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...
0
by: Simpy | last post by:
I have an ordinary datagrid in a C# desktop application which displays products. I used the keyup-event to show a dialogform where product information can be edited. This works ok. But if the user...
0
by: Simpy | last post by:
I have an ordinary datagrid in a C# desktop application which displays products. I used the keyup-event to show a dialogform where product information can be edited. This works ok. But if the...
3
by: Sharon | last post by:
I’m using a DataGrid control on my form; and I want to handle the KeyUp event. So I did: myDataGrid.KeyUp += new KeyEventHandler(this.OnKeyUp); When the DataGrid is empty, I mean when It has...
4
by: Serdge Kooleman | last post by:
How to get "Key press" event when i'm working with DataGrid (winforms). Seems to me that standard events "KeyUp, KeyPress" are ignored :-( Thank you
2
by: Carl Tribble | last post by:
Is there any way to reliably catch KeyUp events for Function keys in particular while inside a datagrid? I have a form with KeyPreview=True and I am using the Form.KeyUp event to handle several...
1
by: Chris | last post by:
Hey, I have a DataGrid that allows for a combobox in a column through a inherited DataGridColumnStyle and a inherited ComboBox. I have 3 of these columns in a row. The overall problem is that...
0
by: WhiteWizard | last post by:
I have a windows app that requires I use the Microsoft Datagrid. My users would like to be able to select multiple rows using the Shift and Ctrl keys, and the datagrid has the selection...
10
by: amiga500 | last post by:
Hello, I have one basic simple question. When I have multiple records in the datagrid as follows: Code Product 1 Product 2 Product 3 11111 A B C...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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,...
0
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...

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.