Home » Community » Newbie corner » tracking GridCtrl selection
tracking GridCtrl selection [message #32709] |
Thu, 02 June 2011 19:01  |
 |
bushman
Messages: 134 Registered: February 2009
|
Experienced Member |
|
|
Please bear in mind that I'm totally newbie in using
GridCtrl, when considering the folowing questions:
Is there a way to track selections in a GridCtrl?
I mean, some method like
Point GetSelectionBegin()
or
, which returns the (col, row) coordinates for the
selection begin and selection end, respectively.
Unless I'm mistaken, I didn't see any GridCtrl method
that does it, while browsing GridCtrl with Assist.
Apparently, the only public methods related to selection
tracking are GetSelectedCount(), GetSelectedItemsCount()
and GetSelectionData(), which I assume return the number of
rows selected, the number of cells selected and the
selected data, respectively, allthough I do not have
the slightest idea on how to use the third one to retrieve
selected data.
BTW, method GetSelectedItemsCount() returns different
results to the selection count, depending whether you do either
a CTRL+LMB or a Shift+LMB selection (they differ by 1).
In other words, how can I walk through a selection path in GridCtrl,
checking each selected cell content, cell state, etc.,
one by one, once
a user finishes making a selection with the mouse?
Help appreciated, thanks in advance
|
|
|
Goto Forum:
Current Time: Fri Jul 18 17:14:04 CEST 2025
Total time taken to generate the page: 0.00575 seconds
|