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
380
Copy cell problem.
posted

HI,

   I set  FieldSettings.CellClickAction to CellClickAction.SelectCell  

FieldLayoutSettings.AllowClipboardOperations to AllowClipboardOperations.Copy;

set FieldSettings.AllowEdit to false;

I have a custom CellValuePresenter and when i click a cell and press Ctrl+C, then Ctrl+V to 

a text box, i find all the cells in the row are copied. 

I think maybe my custom CellValuePresenter  cause this problem.

is there any property except CellClickAction  can affect the content copy to clipboard?

Thanks,

  • 9694
    posted

    Hello,

    One approach to working around this issue is add GotFocus and LostFocus events to the TextBox in your CellValuePresenter. When your TextBox gets focus, set AllowClipboardOperations to None. Reset the grid back when it loses focus.