Home All Groups Group Topic Archive Search About

DataGrid, WebForm , Enter Key and Submit !?!?!?!

Author
13 Jan 2006 1:32 PM
Newbie
Hi Everyone,

ASP.NET  1.x

I have a problemette !

I have a datagrid on my web form. When the user hits the enter key whilst
any editable field on the form including those in the datagrid itself, it
triggers a submit back to the server.

A the least, I want to disable this and at best, I want to know if I can
trap the enter key for the currently being edited row on the datagrid to
force and update event of that line.

Can anyone help ?

Author
13 Jan 2006 4:17 PM
Chris
Newbie wrote:
Show quoteHide quote
> Hi Everyone,
>
> ASP.NET  1.x
>
> I have a problemette !
>
> I have a datagrid on my web form. When the user hits the enter key whilst
> any editable field on the form including those in the datagrid itself, it
> triggers a submit back to the server.
>
> A the least, I want to disable this and at best, I want to know if I can
> trap the enter key for the currently being edited row on the datagrid to
> force and update event of that line.
>
> Can anyone help ?
>
>
>
>
>

You can trap the key, you have to use javascript to do this though.
Search around the web to find many example of doing this.

Chris
Author
25 Aug 2006 1:41 PM
Tina Reusch
I was wondering if you ever received or determined an answer to this.  I am
in EXACTLY the same position right now and can't figure out a solution.

Hopefully this will reach you!

Thanks!
Tina