Disable events in Datagrid.

G

Guest

Hi All,
I am working on the winform datagrid. Now I have to disable the cursor
movement in the datagrid using teh Arrow keys on keyboard and also I want to
disable the mouse wheel (the scroll button) for the datagrid. Please help me
in this regard. Its urgent.

I will be waiting for the reply...

Thanks in Advance,
GS
 
R

Reshma Prabhu

You can acheive this by setting 'Enabled' property of the data grid to
'false'

Reshma
 
G

Guest

But the datagrid is not completely Read Only. I have a check box which has to
work.
I just want to disable cursor movements and the mouse wheel movements
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

what if you derive from datagrind, intercept these events and do nothing
with them?
 

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