|
|
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Copy GridCtrl cell when read only
Copy GridCtrl cell when read only [message #26301] |
Fri, 23 April 2010 00:33 |
|
koldo
Messages: 3355 Registered: August 2008
|
Senior Veteran |
|
|
Hello all
One question: Do you know if it is possible to copy a GridCtrl cell when grid is read only?
I want to have the grid in a state where it is not possible to edit but it is possible to select and copy cells.
Best regards
Iñaki
|
|
|
Re: Copy GridCtrl cell when read only [message #26843 is a reply to message #26301] |
Wed, 02 June 2010 04:36 |
ktj9
Messages: 17 Registered: April 2010
|
Promising Member |
|
|
Emm... I need this pretty soon. I might be wrong, but it seems GridCtrl::colidx and GridCtrl::rowidx are set to the cell on LeftDown. Anyway, I don't see out-of-box copy-paste utilities. So I would imagine we need to subclass and override GridCtrl::Key, or wire a menu callback, or override GridCtrl::RightDown, or all of them.
[Updated on: Wed, 02 June 2010 04:37] Report message to a moderator
|
|
|
Re: Copy GridCtrl cell when read only [message #26845 is a reply to message #26843] |
Wed, 02 June 2010 08:33 |
|
@Koldo, you can just make all rows non editable for a while you need it using Editable method. I know it's not comfortable and pretty but should work. I'll try to add ReadOnly method that do this.
@ktj9 GridCtrl supports copy/paste. Just activate it by
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Mar 29 00:19:20 CET 2024
Total time taken to generate the page: 0.01234 seconds
|
|
|