I have a DataGridView bounded to a SLQ Server CE database table.
I created an Add button, when the button is pressed I would like to add a new row to the DataGridView in order to allow the user to insert new data into the DataGridView.
I also would like that the data will be persisted into the bounded database once the user finishes his input in this new row.
I have tried:
dataGridView1.Rows.Add();
Inside the button click event in order to insert a new row, but I get the following error message:
Rows cannot be programmatically added to the DataGridView's rows collection when the control is data-bound
Any suggestions?