How to copy text from the Tcxgrid component (Table)

Asked

Viewed 98 times

1

I have a table that I want to copy her text, so when the user copies it, he can paste it anywhere. but in the properties of the component I do not find.inserir a descrição da imagem aqui

  • Devexpress components usually have a lot of response on their website, see if this solution helps you: https://supportcenter.devexpress.com/ticket/details/t269601/copy-values-from-cxgrid-master-detail-to-clipboard

  • 1

    Thanks for your help, but I found another way to copy the column, thank you.

  • not at all, if you can share here the answer to your question is good for all who are with this same problem, good luck.

1 answer

1


I couldn’t find a way to copy directly through the components of tcxGrid, at first it does not accept the copy when it is used in table form, but when it is used by SQL data this change is possible, in my case as I was using as table I had to create a menu with the information "copy" and in it I passed the data with the following command:

uses clipbrd;

Clipboard.AsText := tblMovimentaEstoque.DataController.Values[tblMovimentaEstoque.DataController.FocusedRecordIndex, cxcNf.index];

inserir a descrição da imagem aqui

Browser other questions tagged

You are not signed in. Login or sign up in order to post.