0

Hi guys, Please help! I want the column/cell of my Datagridview to accepts double(1500.50). I declare the cells as TextBoxCell.

'In dgvw_EditingControlShowing event :
 AddHandler tb.KeyPress, New KeyPressEventHandler(AddressOf txtColDgvw_Keypress) 'Calling the Keypress of TextBoxCell
Private Sub txtColDgvw_Keypress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
        Try
          If not Char.IsNumber(e.KeyChar) Then e.Handled = True
        Catch ex As Exception
            MsgBox(Err.Description)
        End Try
End Sub

It does not accept Double Or I cannot type a point(.)... please Help... Thank You and God bless you:)

Edited by bLuEmEzzy: n/a

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by bLuEmEzzy
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.