This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi There, I thought I post the questions yesterday, but I cannot find it in the forum so I will post it again today and if there is repeated item please forgive me. DataGridExporter can export the whole datagrid to Csv format, can you make it so that we can export the selected records to export? Can we change the delimiter for the exporting? right not you can only use ",". Can we use something like \t or space or any other characters? How about the clipboard support? Thanks Gordon |
|
|
We have now added the ability to choose the exported items, either All or SelectedItems only. We've also added a property (of type string) to set the delimiter for the CSV exporter. These new features will be available in the next nightly build. To do this, we've had to add to the API - while you can still access the CSV exporter in the Singleton manner, to get the new functionality you'll need to create an instance of the exporter:
The full updated example is available on its page in the Sample Explorer. Hopefully this will suit your needs, any feedback let us know. Also, can you expand upon the clipboard support you desire? |
|
|
Thanks callumg. Export selected records and delimiter changing are working fine. Can we have an option to export the column header or not to have the column header? About Clipboard, can we have something DataGrid.GetClipboardContent(), it will get the whole grid content or selected items to the clipboard and then you can paste it to whatever application you want. |
|
|
Thanks for the feedback. We've added a property 'IsColumnHeaderExported' to the CSV exporter that will enable/disable the writing of the column header row as the first row of the output stream - this will be available in the next nightly build. Also the clipboard functionality request has been noted and added to the request queue. It appears the implementation will be non-trivial, and due to backlogs we won't be able to work on it immediately but it will definitely be added at a later date - will let you know. Callum |
|