I have a DataGridView with some text columns, combo box columns and an image column. When I try to add a blank new row by calling DataGridView1.Rows.AddCopy(0) I get the following error: System.FormatException: Formatted value of the cell has a wrong type.
The new row does not contain any data. When the user adds a new row through the GUI (i.e. not programmatically) there is no problem. Does anyone have any ideas as to what might be causing this issue?
Rows.Insert(1,0)instead.DataGridViewRow.