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, DataGridCsvExporter.WriteString(DataGrid) will automatically add quotes around the data in each cell, could you give us a choice to not add the quotes around the value in the cell? i.e.:
I don't want the quotes. and want to have it like:
Thanks Gordon |
|
|
Hello Gordon In the next nightly build, the DataGridCsvExporter will have an IsQuotingEnabled property which when set to false will no longer put quote marks around the items. Jason Fauchelle |
|
|
Thanks Jason, Everything is fine except if the cell value originally has quotes, the output will have 2 double quotes: ie. if in the cell the value is "Closed", the output is still ""Closed"". Can you do that just output whatever the values in the cell, if it has quotes originally, keep it but don't add the extra? i.e. "Closed" is still "Closed" Thanks Gordon |
|
|
Thanks Gordon This will be resolved in the next nightly build. Jason Fauchelle |
|
|
Hi Jason, I have some time to test version 6.0 today and find that DataGridCsvExporter.IsQuotingEnabled is not in version 6.0. Also, DataGridExporter.Csv does not have this option for user to use. I also find a bug that, if all the datagrid column is created though xaml, i.e.
and try to use DataGridCsvExporter.WriteString or WriteText() it will crash. Thanks Gordon |
|
|
Hello Gordon In the next nightly build, version 6.0 will be up to date with the recent changes in version 5.1. Thanks for pointing out the exception. This will be resolved in the next nightly build, but in order for it to work fully, make sure to set the PropertyName of the column so that it knows which property of the model objects it gets the cell values from. The Header property is just to change what is displayed to the user. Jason Fauchelle |
|