/// <summary> /// Deletes a row in accord with <c><see cref="Undo()">Undo()</see></c> /// or <c><see cref="Redo()">Redo()</see></c>. /// </summary> void DeleteRow() { //logfile.Log("UndoRedo.DeleteRow()"); int r = _it.r._id; _grid.Delete(r); _grid.ClearSelects(); if (r >= _grid.RowCount) { r = _grid.RowCount - 1; } _grid.EnsureDisplayedRow(r); _grid._f.EnableRoweditOperations(); int invalid = YataGrid.INVALID_GRID | YataGrid.INVALID_FROZ | YataGrid.INVALID_ROWS; if (_grid.Propanel != null && _grid.Propanel.Visible) { invalid |= YataGrid.INVALID_PROP; } _grid.Invalidator(invalid); if (Settings._autorder && Yata.order() != 0) { _grid._f.layout(); } }