// Clear All cells. public void ClearAll() { if (initialized) { grid.Record(); // Record for undo. grid.ClearAll(); grid.DrawGrid(); } }