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

  • Thread starter Thread starter ray
  • Start date Start date
R

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
 
ray said:
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
 
Back
Top