I want to set the datagridview values in number format. Currently I am getting this:
Goto your Form's Design mode then goto the properties of dgvmain there check DefaultCellStyle and set the format as you like.
OR
you can do this
dgvmain.Columns["Amount"].DefaultCellStyle.Format = "N2";
:)