When I delete a row from my dataset, using
'Delete the current row
Dim ll_cur_row As Long
ll_cur_row = Dg_base1.CurrentRowIndex()
If ll_cur_row >= 0 Then
Ds_lookup1.cvt_lookup.Rows(ll_cur_row).Delete()
End If
It is marked for deletion, but not updated yet. Then, if the user deletes
another row, the CurrentRowIndex of the datagrid is off from the row index
of the dataset because the row is still in the dataset but only flagged as
deleted. Do I have to update and retrieve the dataset after every deletion
to keep it in sync with what is displayed in the datagrid? BTW, I also have
this problem with sorting the datagrid, that is the row index of the
datagrid does not correspond to the same row in the dataset.
TIA,
--
Mike Bravo
mi***********@comcast.net