DataGridView Row Deletion (data Bound)

Answered
0
0

Hi

Not sure if this is a .net issue or lies with Wise J

Using Version 2.2.42.0

1) Add a row to a data bound DGV

2) Save it to SQL Database

3) Call DataTable Accept Changes

4) Delete the row

5) Before row deletes capture table row index

6) Delete Row from SQL database

7) Call DataTable Accept Changes

When the grid reappears you notice the Row above has been deleted from the DGV (And the row header marked with an error icon) (but not from Database)

In fact it turns out that you can delete any row from the DGV except the last two rows

 

Attachment
  • You must to post comments
Best Answer
0
0

Fixed in version 2.2.43.0

  • You must to post comments
0
0

Hi

Working with Luca managed to get rid of the row error due to the incorrect removal of the row above.

However if I set up a Data Adapter to delete a selected row it works fine except if you attempt to delete the last row in the DGV.

In this case you get the attached error.

Thanks for your help

Attachment
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.