Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Dim row As Integer Public selRow As New DataGridViewRow Dim index As Integer index = DataGridView1.SelectedRows.Item(0).Index selRow = DataGridView1.Rows.Item(index) DataGridView1.Rows.Remove(selRow) row = row - 1 End Sub
When i exucute this code it shows me error
"Rows cannot be programmatically removed unless the datagridview is data-bound to an IBindingList that support change notification and allows deletion."
I dont understand what is this error and how to solve this?

New Topic/Question
Reply




MultiQuote





|