By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,344 Members | 1,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,344 IT Pros & Developers. It's quick & easy.

DataGrid Delete Row (WinForm)

P: n/a
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


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.


Mike Bravo
Nov 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.