Hi I have a datagridview in my winform application and I have 2events related to it.
one is Cellformatting which is formatting a row in datagridview as per different values.
and another is UserdeletedRow event which allows to delete a particular row.
but there is a conflict as I have checked,I am not allowed to delete a record as cellformatting event shows error"object not set to instance" .
If i do not use cellformatting event then UserdeletedRow event works fine.
But I want to keep both events.what I require to do.
I used CellEndEdit event and remove handler for cellformatting then also
row is not getting deleted.I do not get any error message.
which event has to be used so there is no conflict?