Grid Selection Question...

Hi,

Is there any ( well not too convoluted ) of ensuring that
only one row can be selected?

I have turned on "select by row" but I want to inhibit
enlargement of the selection caused by dragging the mouse,
command-clicking and shift-clicking. I have a handler for
EVT_GRID_RANGE_SELECT in place...

"There can be only one"

Jerry

Jerry LeVan wrote:

Hi,

Is there any ( well not too convoluted ) of ensuring that
only one row can be selected?

I have turned on "select by row" but I want to inhibit
enlargement of the selection caused by dragging the mouse,
command-clicking and shift-clicking. I have a handler for
EVT_GRID_RANGE_SELECT in place...

You'll need to add code to deselect the other rows when you get a new selection event. IIRC there is an example of this in the wiki somewhere.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!