Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Copy text from data grid cell
Wed, Oct 17 2018 2:56 PMPermanent Link

jdforce

Avatar

Just discovered that I can not copy (on windows, using control-c) the text inside any cell of a bound data grid cell.
On any regular page on a browser, it is a regular operation to be able to copy text.

My users need to copy the text value and paste it on another application.
I searched the documentation and properties for the component on the IDE, when designing the app, but can't figure it out.

. .
Tue, Oct 23 2018 2:31 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< Just discovered that I can not copy (on windows, using control-c) the text inside any cell of a bound data grid cell.  On any regular page on a browser, it is a regular operation to be able to copy text. >>

You can if you allow for editing of the cell.  Otherwise, in general, you cannot copy text from an EWB application.  EWB applications act like desktop applications, not like traditional web pages. That is *intentional* on our part, so as to avoid the common problem of every control/element having its text selected whenever you accidentally click and drag the mouse in the application UI.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Oct 23 2018 3:15 PMPermanent Link

jdforce

Avatar

In my case, the app is showing a list that must remain read-only, and must copy the selected text with ctrl-c (or right click copy) .
I don't see how disable editing relates to restricting the copy.
Can you suggest a workaround?
Tue, Oct 30 2018 2:21 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

<< In my case, the app is showing a list that must remain read-only, and must copy the selected text with ctrl-c (or right click copy) .  I don't see how disable editing relates to restricting the copy. >>

It's the same as with a grid control in a desktop application - unless you can do an in-place edit, most desktop grid controls don't allow for copying the contents of the grid because, without the in-place edit control, there's really no way of copying the cell contents.

<< Can you suggest a workaround? >>

You can set any TGridColumn as ReadOnly and that will disallow editing, but still allow for copying by using the in-place edit control (make sure that the ControlType is set to ctEdit).

Tim Young
Elevate Software
www.elevatesoft.com
Image