[RESOLVED] datagridview format value - winform
The datagridview dgv is populated from a datatable.
One of the columns ion dgv is called cashValue which I would like it to have thousand separators. So during the population of the data in the dgv, I have this code:
dgv.Columns["CashValue"].DefaultCellStyle.Format = "C";
It seems to solve the thousand separator but I do not want the currency sign. Can I use this style but without the currency sign?
Thanks
Re: datagridview format value - winform
"C" is specifically currency format. Would it surprise you to learn that the MSDN Library can tell you all the format strings available and what they all do?
http://social.msdn.microsoft.com/Sea...20strings&ac=3
Re: datagridview format value - winform