private bool isLastColumnHasDependence() { foreach (DataGridViewRow row in DGVTable.Rows) { DataGridViewCell cell = row.Cells[DGVTable.ColumnCount - 1]; if (cell == null || CellManager.DGVCellToCell(cell) == null) { return(false); } if (CellManager.DGVCellToCell(cell).HasDependence()) { return(true); } } return(false); }
private bool isLastRowHasDependence() { foreach (DataGridViewCell cell in DGVTable.Rows[DGVTable.Rows.Count - 1].Cells) { if (cell == null) { return(false); } Cell _cell = CellManager.DGVCellToCell(cell); if (_cell == null) { return(false); } if (_cell.HasDependence()) { return(true); } } return(false); }