Trapping control key

V

Viswanathan S

Hi All,

How to trap control key in datagrid for multiple row selection. How to use
the keydown for trapping the control, shift, alt keys.

Thanks in Advance
S. Viswanathan
 
C

Cor Ligthert

VisWanathan,

I assume you mean a WindowForm datagrid. That is not build for multiple row
selection. It is build to use the data in its datasource, not the data on
the screen.

For multiple row selection and not a connection with a underlaying
datasource is the listview.

I hope this helps,

Cor
 
H

Herfried K. Wagner [MVP]

Viswanathan S said:
How to trap control key in datagrid for multiple row selection. How to use
the keydown for trapping the control, shift, alt keys.

Take a look at 'Control.ModifierKeys'.
 

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