title: datagridview cell null value error
body: <p>If the value in datagridview cell is not entered the only way to handle the error is this for now. Anyone have better solution ? </p>
  
  <pre><code>Dim senderGrid = DirectCast(sender, DataGridView)
  
  If TypeOf senderGrid.Columns(e.ColumnIndex) Is DataGridViewButtonColumn _
          AndAlso e.RowIndex &gt;= 0 _ 
          AndAlso senderGrid.Columns(e.ColumnIndex).Name = "Add" Then
  
      Dim _status As Integer
  
      Try
          _status = Math.Abs(CInt(dgv6.Item("dgv6_Aktivno", dgv6.CurrentRow.Index).Value))
      Catch ex As Exception
          _status = 0
      End Try
  
      Dim _id As Integer
      Try
          _id = dgv6.Item("dgv6_id", dgv6.CurrentRow.Index).Value
      Catch ex As Exception
          _id = 0
      End Try
  
  End if
  </code></pre>