Error trapping issues in Data Grid View control

  • Thread starter Thread starter JohnDBCTX
  • Start date Start date
J

JohnDBCTX

Guest
I have tried everything:

The Err object, the if conditions, even the event trapping techniques. So far, nothing has worked.

Dim rowIndex As Integer
rowIndex = TblRecordsDataGridView.CurrentCell.RowIndex
lngZ -= 1
TblRecordsDataGridView.Item(0, lngZ).Value = lngX
If lngZ <= 0 Then
TblRecordsDataGridView.Item(0, lngZ).Value = lngX
End If
TblRecordsDataGridView.Rows.RemoveAt(rowIndex)



Above is the code snippet for other users to solve.

All users can reply at their convenience.

The goal is to have its row index set at 1 if a counter variable is less than 1 or 0.

Regards,


JohnDBCTX


jp

Continue reading...
 
Back
Top