If you specify AllowUserToAddRows in the winforms DataGridView , the user can add new rows manually to the grid. Now I want to add the image button in one column, which should be shown in a new row. But I can’t make him show the image, only the image with the red cross is displayed as if it was not found.
Here's a screenshot of the grid with an annoying image:

The image I want to display is in Properties.Resources.Assign_OneToMany .
I searched everywhere and tried several ways (in the constructor):
var assignChargeColumn = (DataGridViewImageColumn)this.GrdChargeArrivalPart.Columns["AssignCharge"]; assignChargeColumn.DefaultCellStyle.NullValue = null; assignChargeColumn.DefaultCellStyle.NullValue = Properties.Resources.Assign_OneToMany;
or
private void GrdChargeArrivalPart_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e) { var grid = (DataGridView)sender; DataGridViewRow row = grid.Rows[e.RowIndex]; if (row.IsNewRow) { var imageCell = (DataGridViewImageCell) row.Cells["AssignCharge"]; imageCell.Value = new Bitmap(1, 1);
Of course, I also assigned this image to the DataGridView column collection on the constructor:

So, what is the correct way to specify the default image for a DataGridViewImageColumn that is displayed even if there is no data, but only a new row? If that matters, this is a jpg image: 
source share