title: Set the specific column from Datagridview to input numbers only in vb.net
body: <p>This is my code for setting all the columns to input numbers only:</p>
  
  <pre><code>Private Sub dvBelt_EditingControlShowing(sender As Object, e As System.Windows.Forms.DataGridViewEditingControlShowingEventArgs) Handles dvBelt.EditingControlShowing
      Try
          RemoveHandler e.Control.KeyPress, AddressOf TextNumberKeypress
          AddHandler e.Control.KeyPress, AddressOf TextNumberKeypress
  
      Catch ex As Exception
          '... 
      End Try
  End Sub
  
  Sub TextNumberKeypress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs)
  
      If Asc(e.KeyChar) &gt;= 33 And Asc(e.KeyChar) &lt;= 47 Or _
          Asc(e.KeyChar) &gt;= 58 Then
          e.Handled = True
      End If
  
  End Sub
  </code></pre>
  
  <p>Now what I want is to set only the first column to allow inputing numbers only, and the remaining columns can input strings.</p>
  
  <p>Thank you for your help</p>