I want to set the datagridview values in number format. Currently I am getting this:
![enter image description here](https://i.stack.imgur.com/CZvEs.jpg)
I want something like this:
![enter image description here](https://i.stack.imgur.com/j9qLA.jpg)
I have used this code:
dgvmain.DefaultCellStyle.Format = "#.##0";
And this code
dgvmain.Columns["Amount"].DefaultCellStyle.Format = "#.##0";
But neither of this working.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…