How to select cell content in a grid

I’m trying to select some grid cell content with the mouse to copy it to the clipboard. But the selection is always cleared after releasing the mouse button.
I found the same behavior in the vaadin sampler “Basic Features” -

Only in the “Column renderers” sample - - it works much better - at least for the name column. The name column based on a HtmlRenderer and I try a HtmlRenderer in my sample too - but without success. So I have not idea where the diffrent is.

Can anyone suggest how to do something like that ?