473,507 Members | 2,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Capture Enter Key in DataGrid

IST
Hello,

We have a datagrid in a webform that has item id, template colum with
textbox for quanity and template column with link button to check stock. We
need to capture the enter key when webusers type a quanity in one of the
datagrid textboxes to fire the corresponding "check stock" linkbutton
template column.

Thanks in advance of any help with this.

Nov 19 '05 #1
2 1851
Hi IST,

this can ONLY be done on the client-side. With javascript! But if and how
this event is captureed is dependant on the browser serving on your website.
The latest version of IE blocks that kind of event-capturing.

You can do the following:

<table ... [your datagrid-table] ... onkeyup="captureGridKeyup();">
....
</table>

.... and the javascript function ...

function captureGridKeyup()
{
alert (event.keyCode);
}

regards
patrick

"IST" wrote:
Hello,

We have a datagrid in a webform that has item id, template colum with
textbox for quanity and template column with link button to check stock. We
need to capture the enter key when webusers type a quanity in one of the
datagrid textboxes to fire the corresponding "check stock" linkbutton
template column.

Thanks in advance of any help with this.

Nov 19 '05 #2
IST
Thanks Patrick.

"Patrick" wrote:
Hi IST,

this can ONLY be done on the client-side. With javascript! But if and how
this event is captureed is dependant on the browser serving on your website.
The latest version of IE blocks that kind of event-capturing.

You can do the following:

<table ... [your datagrid-table] ... onkeyup="captureGridKeyup();">
...
</table>

... and the javascript function ...

function captureGridKeyup()
{
alert (event.keyCode);
}

regards
patrick

"IST" wrote:
Hello,

We have a datagrid in a webform that has item id, template colum with
textbox for quanity and template column with link button to check stock. We
need to capture the enter key when webusers type a quanity in one of the
datagrid textboxes to fire the corresponding "check stock" linkbutton
template column.

Thanks in advance of any help with this.

Nov 19 '05 #3

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

Similar topics

1
3074
by: Matthew Wieder | last post by:
Hi - I wanted to capture the enter button on a form since I have a datagrid with the first column being a delete button and if someone hits enter it deletes the first record. I coded: private...
5
3111
by: ewillyb | last post by:
Hi, ASP.NET has some interesting behavior when the user hits the Enter key. If there are multiple ASP:Buttons (rendered as HTML submits) on the form, when the user hits enter, the first button's...
10
27779
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? ...
7
62033
by: Bob Achgill | last post by:
When I use the code for KeyPress to capture pressing a certain key for processing on a form with no Text Box it works. But when I try the same code on my application that has text boxes it does...
3
13882
by: Melson | last post by:
hi can anyone help me how can i capture ENTER keystroke when the cell in datagrid is in editing mode. I'm now creating a data entry form with primary key in header and details in datagrid. So...
2
1088
by: IST | last post by:
Hello, We have a datagrid in a webform that has item id, template colum with textbox for quanity and template column with link button to check stock. We need to capture the enter key when...
0
1362
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...
0
1213
by: crferguson | last post by:
I've been looking in every place I can to find a solution for this and I believe I've pieced a solid one together so I thought I'd share since I've found so much help on these groups... This is...
2
1178
bplacker
by: bplacker | last post by:
This seems like a simple question but, obviously, I cannot figure it out. I have a form which comes up with a datagrid, and from this datagrid I open up an edit form with the selected record from...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7319
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
7376
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...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
5042
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...
0
4702
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
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...

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.