I'm having trouble adding a row to my datagridview for a redo button. I want to add the public string variable called DeletedFilmName to a new row in the first column (column is called "Films"), that's it. I've tried all sorts of things but can't seem to get this working, as simple as it seems.
Here's my error: "InvalidOperationException was unhandled. Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound."
Private Sub Redo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Redo.Click
FilmsDataGridView.Rows.Add(New Object() {DeletedFilmName})
End Sub
Any ideas? Thanks for your help in advance.