I have a datagrid and the selected datarows' fields are displayed in fields below.
When I try to delete a row, then I advance to the next row, the correct row is not shown in the fields below; it tends to lag by one. However, all the records before the record deleted show up fine.
VB Code:
  1. Private Sub btn_Del_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Del.Click
  2.  
  3.  
  4.         If objDS.Tables("phonebook").Rows.Count > 0 Then
  5.             Dim objDelRow As DataRow
  6.             objDelRow = objDS.Tables("phonebook").Rows(bmGrid.Position)
  7.             objDelRow.Delete()
  8.             moveprevious()
  9.          End If
  10.         ShowRecord(bmGrid.Position)
  11.     End Sub

Basically my question is there a way to skip through records that are marked as deleted when I scroll through the datagrid?