dgv comma separated
-
14 April 2012 19:00
c# - winform
I have a dgv populated by csv file.
I should prevent user to input a comma carracter into dgv cell, bacause of writing back csv file from dgv content.
Or, make some exception for hendling with comma, into writing procedure (dgv to csv).
Any help, please.
Semua Balasan
-
14 April 2012 19:22
If you write the CSV file yourself, then quote each field that contains comma. If field contain quote characters, then replace them with two quote characters [http://en.wikipedia.org/wiki/Comma-separated_values].
- Ditandai sebagai Jawaban oleh Bonaca 15 April 2012 7:26
-
15 April 2012 7:26
Thanks, Viorel, i will Try.
- Diedit oleh Bonaca 15 April 2012 7:26