79302442

Date: 2024-12-23 07:30:21
Score: 0.5
Natty:
Report link

According to the below link I got a solution :

link!

So I added the BeginEdit event datagridview then the error is solved

Private Sub DataGridView1_CellBeginEdit(sender As Object, e As DataGridViewCellCancelEventArgs) Handles DataGridView1.CellBeginEdit
        Dim currencyManager As CurrencyManager = CType(BindingContext(BindingSource1.DataSource), CurrencyManager)
        currencyManager.SuspendBinding()
        ' Manipulate datasource
        currencyManager.ResumeBinding()

    End Sub

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dlaksmi