public bool DeleteRow(int row) { if (row < 0 || row >= rows.Count) { return false; } rows.RemoveAt(row); curPosition.X--; return true; }