Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
105
Copy cell data that is not editable
posted

I would like a non-editable cell, but I would still like to be able to copy the data from it using Ctrl-C.  When the FieldSettings has AllowEdit=false, you cannot select or copy the data.  When I use a style to set the IsReadOnly property to true on the XamTextEditor, you can copy the text, but it fires the EditModeStarting and EditModeStarted events and it looks like you can edit the field but you cannot.

Is there anything else I can do where a cell does not look editable, but still allows you to select and copy the cell text?

Parents
  • 69686
    Verified Answer
    posted

    Hello,

    I really see no easy way to do this without EditMode action. In order to select the text, you have to start EditMode of the XamEditor. First what comes in my mind you can handle the mouse click of the CellValuePresenter and directly copy the value of the active cell in the clipboard. You can also use a Context Menu which exposes a Copy command. Moreover, you can see the example in the XamFeatureBrowser about Adorning Editors or in Josh Smith's blog here and implement functionality like this.

    Alex.

Reply Children
No Data