DataGrid Disable Ctr-A

  • Thread starter Thread starter Howard Swope
  • Start date Start date
H

Howard Swope

Ctrl-A selects all in the System.Windows.Forms.DataGrid. I am trying to
disable this functionality and am having a heck of a time. I have a control
that inherits from DataGrid I have tried to catch the Ctrl-A in the
OnKeyDown and ProcessKeyMessage and it seems that something is getting to it
bore I do. I am able to catch it in the OnKeyUp, but by then its too late.

How can this be done

TIA
 
Hello Howard Swope,

You can set the datagridview property MultiSelect to value False.
This would override 'Ctrl+A' settings of windows and won't allow the user to
select all rows of the datagridview.

Hope this is the correct feature you need, Let me know in case you need more
help,

Jay Kudecha.
 
Just noticed your post about Janus GridEx.

Before you purchase this grid, I highly suggest that you consider Developer
Express's datagrid.

The company I work for owns the following three data grids:
Infragistics - Probably the most popular *high-end* datagrid out there.
DevExpress http://www.devexpress.com/Index.xml
Janus Grid

I have projects using all three of these grids. After using all three of
them, I am converting all of the projects to use Developer Express's Data
Grid.
Reason #1: There grid is really fast.
Reason #2: You get the source code for the entire suite.
Reason #3: They simply have one of the best engineered data grids out there,
just look at the source code and you will see what I mean.

Cheerio,
Russell Mangel
 
I will eventually replace Grid controls in my application by Janus GridEx
(yes, I'll have to buy it).

I'm sure your issue can be fixed though :)

Etienne
 
Jay:

There is no MultiSelect value that I can find. In fact, I am writing one
now. You must be thinking of the DataGridView in .Net 2.0. Unfortunatley I
am using System.Windows.Forms.DataGrid 1.1.

Jay Kudecha said:
Hello Howard Swope,

You can set the datagridview property MultiSelect to value False.
This would override 'Ctrl+A' settings of windows and won't allow the user
to
select all rows of the datagridview.

Hope this is the correct feature you need, Let me know in case you need
more
help,

Jay Kudecha.


Howard Swope said:
Ctrl-A selects all in the System.Windows.Forms.DataGrid. I am trying to
disable this functionality and am having a heck of a time. I have a
control
that inherits from DataGrid I have tried to catch the Ctrl-A in the
OnKeyDown and ProcessKeyMessage and it seems that something is getting to
it
bore I do. I am able to catch it in the OnKeyUp, but by then its too
late.

How can this be done

TIA
--
Howard Swope [hswopeATtrafficDOTcom]
Software Engineer
Media Development
Traffic.com [http://www.traffic.com]
 
Back
Top