dataGridView1.Columns(0).DefaultCellStyle.Format = "00,000,00"
' and
Private Sub DataGridView1_KeyPress(sender As Object, e As System.Windows.Forms.KeyPressEventArgs) Handles DataGridView1.KeyPress
If (Char.IsDigit(e.KeyChar)) Then
'this is a number
e.Handled = True
Else
'not a number
End If
End Sub
Maybe like this
Open in new window
Regards