I have a vb.net windows forms application that is using a datagridview. I'm hoping to find a simple way to format certain datagridview cells numbers upto 3 decimal places. This is what I have done so far, but it doesn't seem to format everything correctly.
DataGridView1.Columns(3).DefaultCellStyle.Format = "#.###"
Do you try with this one?
DataGridView1.Columns(2).DefaultCellStyle.Format = "N3"
Also this one may helpful:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With