Hi all,
I have created a custom datagridview cell type (which allows the user to either enter text or add an image). This is working as I had planned, with one exception...
This new cell type, which is set as the CellTemplate, has a button to the right of the cell which, when clicked, allows the user to browse for the image and it is displayed in the cell. However if the row is a new row (isNewRow) it still added the image, but does not create a new "new row" underneath. Its as if the row with the image in is still a clean, new row.
Doing some googling I see that there is a value NotifyCurrentCellDirty, but this seems to only be accessible at the form level, not the cell.
So how do I, from within the custom cell code, mark the row as dirty so that a new row is created underneath? Is marking it as dirty actually the correct thing to do? How does the standard text cell create a new row when you start typing in it?
thanks
Chris