Home All Groups Group Topic Archive Search About

How to prevent press "SHIFT + ENTER" in datagrid?

Author
1 Jun 2006 8:56 AM
ray
Hi,
    Now, I have a datagrid with data input. The data type is nvarchar. While
I press "SHIFT+ENTER", it moves to a new row for the same data row.  Can I
prevent it from happening?
Thanks a lot,
Ray

Author
1 Jun 2006 4:04 PM
Chris
ray wrote:
> Hi,
>     Now, I have a datagrid with data input. The data type is nvarchar. While
> I press "SHIFT+ENTER", it moves to a new row for the same data row.  Can I
> prevent it from happening?
> Thanks a lot,
> Ray
>
>

You will need to inherit the datagridtextboxcolumn and overwrite the
keypress event.  Apply your inherited datagridtextboxcolumn to your
tablestyles.

Chris