Implemented interface member:
property
Count
System.Collections.ICollection.Count
1 override of Count
System.Windows.Forms (1)
winforms\Managed\System\WinForms\BindingsCollection.cs (1)
31public override int Count {
345 references to Count
System.Windows.Forms (345)
winforms\Managed\System\WinForms\BindingsCollection.cs (1)
36return base.Count;
winforms\Managed\System\WinForms\DataGrid.cs (58)
910if (DataGridRowsLength == 0 || this.myGridTable.GridColumnStyles == null || this.myGridTable.GridColumnStyles.Count == 0) 929int columnCount = myGridTable.GridColumnStyles.Count; 1140currentCellAccIndex += this.myGridTable.GridColumnStyles.Count; // ColumnHeaderAccessibleObject 1146currentCellAccIndex += (this.currentRow * this.myGridTable.GridColumnStyles.Count) + this.currentCol; 2987return Math.Min(numVisibleCols, this.myGridTable == null ? 0 : this.myGridTable.GridColumnStyles.Count); 3018if (columnIndex < 0 || columnIndex >= myGridTable.GridColumnStyles.Count) 3028if (columnIndex < 0 || columnIndex >= myGridTable.GridColumnStyles.Count) 3523if (firstVisibleCol > -1 && firstVisibleCol < columns.Count && columns[firstVisibleCol] == editColumn) 3627for (int i = this.firstVisibleCol; i > -1 && i < cols.Count && cols[i].Width == 0; i ++) { 4000if (coll != null && currentCol > 0 && currentCol < coll.Count) { 4731for (int j = 0; j < myGridTable.GridColumnStyles.Count; j++) { 4787for (int i = this.lastTotallyVisibleCol + 1; i < this.myGridTable.GridColumnStyles.Count; i ++) { 4807int colCount = this.myGridTable.GridColumnStyles.Count; 4946for (int i = this.lastTotallyVisibleCol + 1; i < this.myGridTable.GridColumnStyles.Count; i ++) { 4957int colCount = this.myGridTable.GridColumnStyles.Count; 5060int columnsCount = columns.Count; 5512int nGridCols = columns.Count; 5523if (visibleWidth < 0 || columns.Count == 0) 5594if (myGridTable != null && myGridTable.GridColumnStyles != null && myGridTable.GridColumnStyles.Count != 0) { 5597int nGridCols = columns.Count; 5823for (int i = 0; i < tables.Count; i++) 5912if (this.myGridTable.GridColumnStyles.Count == 0) 6201int columnCount = columns.Count; 6227int lastCol = Math.Min(col, columns.Count); 6254int columnsCount = columns.Count; 6544int numCols = columns.Count; 6591if (column < 0 || gridColumns == null || gridColumns.Count <= column) 6605int gridColumnsCount = gridColumns.Count; 6737int nGridCols = myGridTable.GridColumnStyles.Count; 6926if (this.myGridTable.GridColumnStyles.Count > 0 && this.myGridTable.GridColumnStyles[0].Width == -1) { 7150int nGridCols = gridColumns.Count; 7402int numCols = myGridTable.GridColumnStyles.Count - firstVisibleCol; 7517if (currentCol >= 0 && currentCol < columns.Count) 7540int numCols = columns.Count; 7630for (i = startCol + 1; i < cols.Count; i++) { 7682int lastColumnMarkedVisible = cols.Count; 7683for (int i = 0; i < cols.Count; i++) { 7690for (int i = cols.Count - 1 ; i >= 0; i--) { 7988int newCol = MoveLeftRight(this.myGridTable.GridColumnStyles, this.myGridTable.GridColumnStyles.Count, false); 8025if (newCol == cols.Count + 1) { 8256int columnCount = myGridTable.GridColumnStyles.Count; 8306int firstColumnMarkedVisible = cols.Count-1; 8329for (int i = 0; i < cols.Count; i ++) { 8336for (int i = cols.Count - 1; i >= 0; i --) { 8349if (cols.Count > 0) 8394if (cols.Count > 0) 8448Debug.Assert(nextCol < cols.Count, "we already checked that we are not at the lastColumnMarkedVisible"); 8648int nGridCols = gridColumns.Count; 8725if (gridTable.GridColumnStyles.Count == 0 && !DesignMode) { 8737for (int i = 0; i < gridCols.Count; i ++) 8759if (gridTable.GridColumnStyles.Count > 0 && gridTable.GridColumnStyles[0].Width == -1) { 8973DataGridTableStyle[] tables = new DataGridTableStyle[dgrid.TableStyles.Count]; 8980DataGridColumnStyle[] columns = new DataGridColumnStyle[table.GridColumnStyles.Count]; 9056return ((DataGrid)Owner).myGridTable.GridColumnStyles.Count; 9139int colCount = dataGrid.myGridTable.GridColumnStyles.Count; 9144if (currentRow < dataGrid.dataGridRows.Length && currentCol < dataGrid.myGridTable.GridColumnStyles.Count) { 9162n += this.DataGrid.DataGridRows.Length * this.DataGrid.myGridTable.GridColumnStyles.Count; 9175if (this.DataGrid.DataGridRows.Length == 0 || this.DataGrid.myGridTable.GridColumnStyles.Count == 0) {
winforms\Managed\System\WinForms\DataGridColumn.cs (1)
1225for (int i = 0; i < cols.Count; i++)
winforms\Managed\System\WinForms\DataGridColumnCollection.cs (3)
323for (int i = 0; i < Count; i++) { 349for (int i = 0; i < Count; i ++) { 570for (int i = 0; i < this.Count; i++) {
winforms\Managed\System\WinForms\DataGridParentRows.cs (6)
363for (int j=0; j<cols.Count; j++) { 603if (colNum < columns.Count) { 623if (colNum < columns.Count) { 638colNum = Math.Max(colNum, dgs.GridColumnStyles.Count); 912for (int i = 0; i < cols.Count; i ++) { 967if ( i < cols.Count - 1)
winforms\Managed\System\WinForms\DataGridRow.cs (13)
110int nCols = columns.Count; 340if (columns != null && currentColIndex >= 0 && currentColIndex < columns.Count) { 487int nCols = columns.Count; 702if (column < grid.myGridTable.GridColumnStyles.Count) { 711if (column < grid.myGridTable.GridColumnStyles.Count) { 736cells = new ArrayList(DataGrid.myGridTable.GridColumnStyles.Count + 2); 745int len = cols.Count; 865return DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.Count + owner.RowNumber + 1); 870return DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.Count + owner.RowNumber - 1); 1022AccessibleObject o = DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.Count + owner.RowNumber + 1); 1029return DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.Count + owner.RowNumber + 1).Navigate(AccessibleNavigation.FirstChild); 1031return DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.Count + owner.RowNumber - 1).Navigate(AccessibleNavigation.FirstChild); 1038AccessibleObject o = DataGrid.AccessibilityObject.GetChild(1 + owner.dgTable.GridColumnStyles.Count + owner.RowNumber - 1);
winforms\Managed\System\WinForms\DataGridTable.cs (3)
1582int nCols = gridColumns.Count; 1687for (int i = 0; i < gridColumns.Count; i++ ) 1895for (int i = 0; i < cols.Count; i++)
winforms\Managed\System\WinForms\DataGridView.cs (16)
1138DataGridViewAutoSizeColumnMode[] previousModes = new DataGridViewAutoSizeColumnMode[this.Columns.Count]; 1766return this.Columns.Count; 1778if (value != this.Columns.Count) 1785else if (value < this.Columns.Count) 1788while (value < this.Columns.Count) 1790int currentColumnCount = this.Columns.Count; 1792if (this.Columns.Count >= currentColumnCount) 1802while (value > this.Columns.Count) 1804int currentColumnCount = this.Columns.Count; 1806if (this.Columns.Count <= currentColumnCount) 2185Debug.Assert(this.ptCurrentCell.X < this.Columns.Count); 2249Debug.Assert(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.Count); 2930firstDisplayedCell.ColumnIndex < this.Columns.Count); 3094if (value < 0 || value >= this.Columns.Count) 3947for (int columnIndex = 0; columnIndex < this.Columns.Count; columnIndex++) 4088if (this.Columns.Count == 0)
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (6)
98if (this.owner.Columns.Count == 0) 148if (this.owner.Columns.Count == 0) 302for (int i = 0; i < owner.Columns.Count; i++) 375UnsafeNativeMethods.IRawElementProviderSimple[] result = new UnsafeNativeMethods.IRawElementProviderSimple[this.owner.Columns.Count]; 376for (int i = 0; i < this.owner.Columns.Count; i++) 396column >= 0 && column < this.owner.Columns.Count)
winforms\Managed\System\WinForms\DataGridViewButtonCell.cs (1)
534this.ColumnIndex < this.DataGridView.Columns.Count &&
winforms\Managed\System\WinForms\DataGridViewCell.cs (4)
2025Debug.Assert(this.ColumnIndex < this.DataGridView.Columns.Count); 2168Debug.Assert(this.ColumnIndex < this.DataGridView.Columns.Count); 2678Debug.Assert(this.ColumnIndex < dataGridView.Columns.Count); 3466if (this.DataGridView != null && e.ColumnIndex < this.DataGridView.Columns.Count && e.RowIndex < this.DataGridView.Rows.Count)
winforms\Managed\System\WinForms\DataGridViewCellCollection.cs (2)
286if (dataGridView != null && dataGridView.Columns.Count > index) 408if (dataGridView != null && dataGridView.Columns.Count > index)
winforms\Managed\System\WinForms\DataGridViewCellPaintingEventArgs.cs (3)
196if (this.columnIndex < -1 || this.columnIndex >= this.dataGridView.Columns.Count) 220if (this.columnIndex < -1 || this.columnIndex >= this.dataGridView.Columns.Count) 249if (this.columnIndex < -1 || this.columnIndex >= this.dataGridView.Columns.Count)
winforms\Managed\System\WinForms\DataGridViewCheckBoxCell.cs (2)
965this.ColumnIndex < this.DataGridView.Columns.Count && 1084Debug.Assert((position.X >= 0) && (position.X < this.DataGridView.Columns.Count));
winforms\Managed\System\WinForms\DataGridViewColumn.cs (1)
378if (value >= this.DataGridView.Columns.Count)
winforms\Managed\System\WinForms\DataGridViewColumnCollection.cs (5)
400if (this.Count > 0) 412for (int columnIndex = 0; columnIndex < this.Count; columnIndex++) 614this.lastAccessedSortedIndex < this.Count); 1157if (index < 0 || index >= this.Count) 1183Debug.Assert(index >= 0 && index < this.Count);
winforms\Managed\System\WinForms\DataGridViewDataConnection.cs (7)
319for (int i = 0; i < this.owner.Columns.Count; i++) 335for (int i = 0; i < this.owner.Columns.Count; i++) 535if (this.owner.Columns.Count > 0) 717for (int columnIndex = 0; columnIndex < this.owner.Columns.Count; columnIndex++) 763if (this.owner.Columns.Count == 0) 1303if (this.owner.Columns.Count == 0) 1370(columnIndex < this.owner.Columns.Count && rowIndex < this.owner.Rows.Count &&
winforms\Managed\System\WinForms\DataGridViewLinkCell.cs (1)
838this.ColumnIndex < this.DataGridView.Columns.Count &&
winforms\Managed\System\WinForms\DataGridViewMethods.cs (168)
38if (cellAddress.X < 0 || cellAddress.X >= this.Columns.Count) 82Debug.Assert(this.Columns.Count > 0); 377Debug.Assert(columnIndex >= -1 && columnIndex < this.Columns.Count); 918autoFillColumns = new ArrayList(this.Columns.Count); 1370if (this.Columns.Count == 0 && this.Rows.Count == 0) 1387allCellsSelected = this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count; 1418allCellsSelected = this.selectedBandIndexes.Count * this.Rows.Count + this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count; 1451allCellsSelected = this.selectedBandIndexes.Count * this.Columns.Count + this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count; 1503DataGridViewColumn[] clonedColumns = new DataGridViewColumn[dataGridViewCols.Count]; 1520for (i = 0; i < dataGridViewCols.Count; i++) 1543while (i < dataGridViewCols.Count) 1694if (columnIndex < 0 || columnIndex >= this.Columns.Count) 1752int columnsCount = this.Columns.Count; 1790if (columnIndex < -1 || columnIndex >= this.Columns.Count) 1825int columnsCount = this.Columns.Count; 1867Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 1931for (int columnIndex = 0; columnIndex < this.Columns.Count; columnIndex++) 2615Debug.Assert(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.Count); 3169if (this.Columns.Count > oldCurrentCellX && this.Columns[oldCurrentCellX].Visible) 3507if (columnIndexException < 0 || columnIndexException >= this.Columns.Count) 3517if (columnIndexException < -1 || columnIndexException >= this.Columns.Count) 3638Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count, "Invalid columnIndex: " + columnIndex ); 4130Debug.Assert(columnIndex < this.Columns.Count); 4163int cellsInCollection = dataGridViewRow.Cells.Count; 4164if (this.Columns.Count > cellsInCollection) 4167DataGridViewCell[] cells = new DataGridViewCell[this.Columns.Count - cellsInCollection]; 4168for (int columnIndex = cellsInCollection; columnIndex < this.Columns.Count; columnIndex++) 4978Debug.Assert(dataGridViewColumn.DisplayIndex < this.Columns.Count); 5010Debug.Assert(anticipatedColumnIndex >= 0 && anticipatedColumnIndex <= this.Columns.Count); 5013if (dataGridViewColumn.DisplayIndex == -1 || dataGridViewColumn.DisplayIndex > this.Columns.Count) 5019Debug.Assert(dataGridViewColumn.DisplayIndex >= 0 && dataGridViewColumn.DisplayIndex <= this.Columns.Count); 5044while (displayIndex < this.Columns.Count && (dataGridViewColumnNext == null || !dataGridViewColumnNext.Visible)); 5151int colCount = this.Columns.Count, displayIndex; 5196for (int columnIndex = dataGridViewColumn.Index; columnIndex < this.Columns.Count; columnIndex++) 5207for (int columnIndex = dataGridViewColumn.Index + insertionCount; columnIndex < this.Columns.Count; columnIndex++) 5590for (int i = 0; i < this.Columns.Count; i ++) 5856if (dgvcme.ColumnIndex < this.Columns.Count && 5867dgvcme.ColumnIndex < this.Columns.Count && 5880if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 5919dgvcme.ColumnIndex < this.Columns.Count && 5928dgvcme.ColumnIndex < this.Columns.Count && 5936if (dgvcme.ColumnIndex < this.Columns.Count && 5944if (dgvcme.ColumnIndex < this.Columns.Count && 5952if (dgvcme.ColumnIndex < this.Columns.Count && 6719columnIndexTmp < this.Columns.Count && 6740columnIndexTmp < this.Columns.Count && 6761dataGridViewColumnTmp = this.Columns[this.Columns.Count - 1]; 6942return cellCount + this.selectedBandIndexes.Count * this.Columns.Count; 7007return this.Rows.Count * this.Columns.Count; 7101if (columnIndex >= this.Columns.Count) 7181Debug.Assert(columnIndex >= -1 && columnIndex < this.Columns.Count); 8246if (columnIndex < 0 || columnIndex >= this.Columns.Count) 8255Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 8525Debug.Assert(index < this.Columns.Count); 9955if (columnIndex < -1 || columnIndex >= this.Columns.Count) 9984if (columnIndex < 0 || columnIndex >= this.Columns.Count) 9993Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 10213return columnIndex >= this.Columns.Count || columnIndex == -1; 10218return columnIndex >= this.Columns.Count || rowIndex >= this.Rows.Count || columnIndex == -1 || rowIndex == -1; 10693Debug.Assert(this.ptCurrentCell.X >= 0 && this.ptCurrentCell.X < this.Columns.Count); 10712Debug.Assert(dataGridViewColumn.Index < this.Columns.Count); 10715if (dataGridViewColumn.DisplayIndex == -1 || dataGridViewColumn.DisplayIndex >= this.Columns.Count) 10939CorrectColumnFrozenState(dataGridViewColumn, this.Columns.Count); 10956int newColumnCount = this.Columns.Count + 1; 10963if (dataGridViewRow.Cells.Count < newColumnCount) 10982if (dataGridViewRow.Cells.Count == newColumnCount) 10988Debug.Assert(dataGridViewRow.Cells.Count < newColumnCount); 11093int previousColumnCount = this.Columns.Count; 11105if (dataGridViewRow.Cells.Count < previousColumnCount + addedColumnCount) 11125while (dataGridViewRow.Cells.Count > previousColumnCount) 11127dataGridViewRow.Cells.RemoveAtInternal(dataGridViewRow.Cells.Count - 1); 11195if (dataGridViewRow.Cells.Count > this.Columns.Count) 11426if (previousModes.Length != this.Columns.Count) 11724if (e.ColumnIndex >= this.Columns.Count) 11761if (e.ColumnIndex >= this.Columns.Count) 11847if (e.ColumnIndex >= this.Columns.Count) 11883if (e.ColumnIndex >= this.Columns.Count) 11920if (e.ColumnIndex >= this.Columns.Count) 11946if (e.ColumnIndex >= this.Columns.Count) 11965if (e.ColumnIndex >= this.Columns.Count) 11996if (e.ColumnIndex >= this.Columns.Count) 12022Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 12032if (e.ColumnIndex >= this.Columns.Count) 12069if (e.ColumnIndex >= this.Columns.Count) 12099if (e.ColumnIndex >= this.Columns.Count) 12129if (e.ColumnIndex >= this.Columns.Count) 12155Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 12165if (e.ColumnIndex >= this.Columns.Count) 12194if (e.ColumnIndex >= this.Columns.Count) 12226if (e.ColumnIndex >= this.Columns.Count) 12258if (e.ColumnIndex >= this.Columns.Count) 12459if (hti.col >= this.Columns.Count) 12920if (e.ColumnIndex >= this.Columns.Count) 12954if (e.ColumnIndex >= this.Columns.Count) 12988if (e.ColumnIndex >= this.Columns.Count) 13022this.ptMouseDownCell.X < this.Columns.Count) 13056if (e.ColumnIndex >= this.Columns.Count) 13087if (e.ColumnIndex >= this.Columns.Count) 13116if (e.ColumnIndex >= this.Columns.Count) 13214if (e.ColumnIndex >= this.Columns.Count) 13400if (e.ColumnIndex >= this.Columns.Count) 13426if (e.ColumnIndex >= this.Columns.Count) 13452Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 13462if (e.ColumnIndex >= this.Columns.Count) 13504Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 13515if (e.ColumnIndex >= this.Columns.Count) 13553if (e.ColumnIndex >= this.Columns.Count) 13582if (e.ColumnIndex < 0 || e.ColumnIndex >= this.Columns.Count) 13613if (e.ColumnIndex < 0 || e.ColumnIndex >= this.Columns.Count) 13723for (int i = 0; i < this.Columns.Count; i++) 13738if (this.Columns.Count != 0 && this.Rows.Count == 0) 13936if (!e.Handled && e.Button == MouseButtons.Left && e.ColumnIndex < this.Columns.Count) 14003Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 15920int newColumnCount = this.Columns.Count + 1; 15927if (dataGridViewRow.Cells.Count < newColumnCount) 15947if (dataGridViewRow.Cells.Count == newColumnCount) 15953Debug.Assert(dataGridViewRow.Cells.Count < newColumnCount); 16352if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16373if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16383if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16438if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16449if (columnIndex < this.Columns.Count) 16474if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 16585if (this.ptMouseEnteredCell.X >= -1 && this.ptMouseEnteredCell.X < this.Columns.Count && 16825if (dgvcme.ColumnIndex < this.Columns.Count && dgvcme.RowIndex < this.Rows.Count) 17475Debug.Assert(dataGridViewColumn.Index >= 0 && dataGridViewColumn.Index < this.Columns.Count); 17555if (this.Columns.Count == 1) 17562int newColumnCount = this.Columns.Count - 1; 17567if (dataGridViewRow.Cells.Count > newColumnCount) 17590for (int i = 0; i < this.Columns.Count; i ++) 17968this.Columns.Count != 0 && 18121columnIndex < this.Columns.Count) 18187Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 18823if (rowIndex < this.Rows.Count && columnIndex < this.Columns.Count) 18835Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 19270if (dataGridViewCell != null && rowIndex < this.Rows.Count && columnIndex < this.Columns.Count) 19318Debug.Assert(rowIndex < this.Rows.Count && columnIndex < this.Columns.Count); 19506for (int i = 0; i < this.Columns.Count; i ++) 19793if (this.Columns.Count > 0) 20049if (this.Columns.Count > 0 || this.Rows.Count > 0) 25495if (this.Columns.Count > 0 && this.newRowIndex == -1) 25602for (int j = 0; j < dataGridViewCols.Count; j ++) 25694if (this.dataConnection != null && this.Columns.Count > 0) 26124Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 26309Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 26310Debug.Assert(this.displayedBandsInfo.FirstDisplayedScrollingCol >= -1 && this.displayedBandsInfo.FirstDisplayedScrollingCol < this.Columns.Count); 26311Debug.Assert(this.displayedBandsInfo.LastTotallyDisplayedScrollingCol >= -1 && this.displayedBandsInfo.LastTotallyDisplayedScrollingCol < this.Columns.Count); 26654int maxColumnIndex = this.Columns.Count; 26689int columnIndex = 0, maxColumnIndex = this.Columns.Count; 26776if (index >= this.Columns.Count) 26778index -= this.Columns.Count; 26832columnIndex >= this.Columns.Count) 26864columnIndex < this.Columns.Count && 27023if (oldCurrentCellX < this.Columns.Count && oldCurrentCellY < this.Rows.Count) 27164if (oldCurrentCellX < this.Columns.Count && oldCurrentCellY < this.Rows.Count) 27487columnIndex < this.Columns.Count && 27540for (int column = columnIndex+1; column < this.Columns.Count; column++) 27558Debug.Assert(columnIndex >= 0 && columnIndex < this.Columns.Count); 27633if (columnIndex < 0 || columnIndex >= this.Columns.Count) 27705if (this.Columns.Count > DATAGRIDVIEW_bulkPaintThreshold) 27721for (int column = columnIndex+1; column < this.Columns.Count; column++) 27953if (columnIndex < 0 || columnIndex >= this.Columns.Count) 28906if (columnIndex < -1 || columnIndex >= this.Columns.Count) 28923if (columnIndex < 0 || columnIndex >= this.Columns.Count) 29211this.ptMouseEnteredCell.X < this.Columns.Count && 29235this.ptMouseEnteredCell.X < this.Columns.Count &&
winforms\Managed\System\WinForms\DataGridViewRow.cs (7)
1153int cellsCount = rowTemplate.Cells.Count; 1227Debug.Assert(this.Cells.Count == dataGridView.Columns.Count); 1876int cellCount = cells.Count; 1877for (int columnIndex=0; columnIndex < cells.Count; columnIndex++) 2095for (int i = 0; i < this.owner.Cells.Count; i ++) 2327if (this.owner.Cells.Count > 0)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (37)
342if (this.DataGridView.Columns.Count == 0) 347if (this.DataGridView.RowTemplate.Cells.Count > this.DataGridView.Columns.Count) 353Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 466if (this.DataGridView.Columns.Count == 0) 495if (this.DataGridView.Columns.Count == 0) 510if (this.DataGridView.RowTemplate.Cells.Count > this.DataGridView.Columns.Count) 516Debug.Assert(rowTemplate.Cells.Count == this.DataGridView.Columns.Count); 558if (this.DataGridView.Columns.Count == 0) 562if (dataGridViewRow.Cells.Count > this.DataGridView.Columns.Count) 582Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 883if (this.DataGridView.Columns.Count == 0) 895Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 977this.DataGridView.Columns.Count != 0 && 1541if (this.DataGridView.Columns.Count == 0) 1546if (this.DataGridView.RowTemplate.Cells.Count > this.DataGridView.Columns.Count) 1559Debug.Assert(rowTemplate.Cells.Count == this.DataGridView.Columns.Count); 1605if (this.DataGridView.Columns.Count == 0) 1610if (dataGridViewRow.Cells.Count > this.DataGridView.Columns.Count) 1637if (this.DataGridView.Columns.Count == 0) 1641if (dataGridViewRow.Cells.Count > this.DataGridView.Columns.Count) 1647Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 1910if (this.DataGridView.Columns.Count == 0) 1923Debug.Assert(dataGridViewRow.Cells.Count == this.DataGridView.Columns.Count); 2503int columnCount = this.DataGridView.Columns.Count;