I just combine from Jayasakthi & Solution from Rossel, and use in my code, it's work well in my vb.net code. thanks guys. bellow is the whole code.
Private Sub dgvItemService_EditingControlShowing(sender As Object, e As DataGridViewEditingControlShowingEventArgs) Handles dgvItemService.EditingControlShowing
If TypeOf e.Control Is TextBox Then
Dim tb As TextBox = TryCast(e.Control, TextBox)
If Me.dgvItemService.CurrentCell.ColumnIndex = 2 Then
AddHandler tb.KeyPress, AddressOf tb_KeyPress
End If
End If
End Sub
Private Sub tb_KeyPress(sender As Object, e As KeyPressEventArgs)
If Not Char.IsControl(e.KeyChar) And Not Char.IsDigit(e.KeyChar) And e.KeyChar <> "." Then
e.Handled = True
End If
End Sub
Just Change the dgvItemService with your own DataGridview Name.