Keypress event not working in datagrid

A

Andy

Hi all,
I'm a beginner. I have a problem. In my datagrid i have read only data
grid. I written code to delete a row by using delete key in keydown
event of datagrid. But this event is not always firing. I have to
select index using mouse and when i press delete key the arrow icon
change into a pen. And then i have to click the same row with the
mouse and then press delete key. Now it's works. Why? I want to delete
arow using click mouse once and press delete key. Not click mouse twice
in arow then press delete.

Thx
 
K

Ken Tucker [MVP]

Hi,

http://www.windowsformsdatagridhelp.com/default.aspx?ID=82ee4145-632c-42a1-83b9-57ec163eaa17

Ken
--------------------
Hi all,
I'm a beginner. I have a problem. In my datagrid i have read only data
grid. I written code to delete a row by using delete key in keydown
event of datagrid. But this event is not always firing. I have to
select index using mouse and when i press delete key the arrow icon
change into a pen. And then i have to click the same row with the
mouse and then press delete key. Now it's works. Why? I want to delete
arow using click mouse once and press delete key. Not click mouse twice
in arow then press delete.

Thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top