Hi,
I'm aware there's problems when deleting rows. One reason why egrid 4 is about to hit the shelves; a complete rewrite. Could be here later tonight.
For now, try the following (haven't the time to test I'm afraid):
use egrid_HideEdit() to remove the selection box, then delete the row.
Finally, if the egrid is now empty (check CountGadgetItems etc.) then force a repaint of the egrid.
Something like:
Code: Select all
egrid_HideEdit(#grid)
RemoveGadgetItem(#grid, item)
If CountGadgetItems(#grid)=0
InvalidateRect_(GadgetID(#grid), 0)
UpdateWindow_(GadgetID(#grid))
EndIf
See if this works?
I may look like a mule, but I'm not a complete ass.