tags:

views:

27

answers:

1

Hi

I have a long list of data that I want to display in table format to users. The data changes when the user performs certain actions in my app, but it is not directly editable. So the user can create a reasonably big table of data, but he can't change individual cells' values.

However, I do want the data to be copy-able. So I want it to be possible for the user to select some or all of the cells, and do a ctrl-C to copy the data to his clipboard, and then a ctrl-V to paste the data to an external text editor.

At the moment, I'm displaying the data in a ListView with a GridView and this works perfectly, except that GridView doesn't allow one to copy data.

What other options can I try? Ours is a WPF app, coding in c#.

+3  A: 

You can trythe DataGrid control of the WPF Toolkit. It allows you to copy the data on the grid and paste it anywhere (like notepad, word, etc.). You can bind a datasource there the way you do on DataGridView\DataGrid controls on .Net Win App and Web App application.

Jojo Sardez
Thanks! This is exactly what I needed.
cfouche
@cfouche - Thanks actually we have simillar requirements and ours was solve by using the WPF Toolkit.
Jojo Sardez