R
Ryan
I want to programmatically add a row to DataGridView (a datasource was
binded with it), but when I call the method DataGridView.Rows.Add, a
System.InvalidOperationException will be thrown and the error message is:
Rows cannot be programmatically added to the DataGridView's rows
collection when the control is data-bound.
But if I create a DataGridView without any datasource binded, the method
DataGridView.Rows.Add can work normally.
I don't know the reason why?
binded with it), but when I call the method DataGridView.Rows.Add, a
System.InvalidOperationException will be thrown and the error message is:
Rows cannot be programmatically added to the DataGridView's rows
collection when the control is data-bound.
But if I create a DataGridView without any datasource binded, the method
DataGridView.Rows.Add can work normally.
I don't know the reason why?