1 write to selectedBandIndexes
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridView.cs (1)
468this.selectedBandIndexes = new DataGridViewIntLinkedList();
167 references to selectedBandIndexes
System.Windows.Forms (167)
winforms\Managed\System\WinForms\DataGridView.cs (4)
4630foreach (int columnIndex in this.selectedBandIndexes) 4646foreach (int rowIndex in this.selectedBandIndexes) 4685foreach (int columnIndex in this.selectedBandIndexes) 4716foreach (int rowIndex in this.selectedBandIndexes)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (163)
1418allCellsSelected = this.selectedBandIndexes.Count * this.Rows.Count + this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count; 1428if (!this.selectedBandIndexes.Contains(dataGridViewColumn.Index)) 1451allCellsSelected = this.selectedBandIndexes.Count * this.Columns.Count + this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count; 1462Debug.Assert(this.selectedBandIndexes.Contains(rowIndex) == 3439if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold || 3460while(this.selectedBandIndexes.Count > 0) 3462SetSelectedRowCore(this.selectedBandIndexes.HeadInt, false); 3478while(this.selectedBandIndexes.Count > 0) 3480SetSelectedColumnCore(this.selectedBandIndexes.HeadInt, false); 3555if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold || 3577while (bandIndex < this.selectedBandIndexes.Count) 3579if (this.selectedBandIndexes[bandIndex] != rowIndexException) 3582SetSelectedRowCore(this.selectedBandIndexes[bandIndex], false); 3600while (bandIndex < this.selectedBandIndexes.Count) 3602if (this.selectedBandIndexes[bandIndex] != columnIndexException) 3605SetSelectedColumnCore(this.selectedBandIndexes[bandIndex], false); 6937return cellCount + this.selectedBandIndexes.Count * this.Rows.Count; 6942return cellCount + this.selectedBandIndexes.Count * this.Columns.Count; 6974foreach (int columnIndex in this.selectedBandIndexes) 6988foreach (int rowIndex in this.selectedBandIndexes) 7910foreach (int rowIndex in this.selectedBandIndexes) 7933foreach (int columnIndex in this.selectedBandIndexes) 12569Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 12572if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 12579while (bandIndex < this.selectedBandIndexes.Count) 12581if (this.selectedBandIndexes[bandIndex] != hti.col) 12584SetSelectedColumnCore(this.selectedBandIndexes[bandIndex], false); 12615else if (!this.selectedBandIndexes.Contains(hti.col)) 12622Debug.Assert(this.selectedBandIndexes.Contains(hti.col)); 12642Debug.Assert(this.selectedBandIndexes.Count <= 1); 12643if (this.selectedBandIndexes.Count > 0) 12645SetSelectedColumnCore(this.selectedBandIndexes.HeadInt, false); 12659if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 12666while (this.selectedBandIndexes.Count > 0) 12668SetSelectedColumnCore(this.selectedBandIndexes.HeadInt, false); 12705Debug.Assert(this.selectedBandIndexes.Count <= 1); 12706if (this.selectedBandIndexes.Count > 0) 12708SetSelectedColumnCore(this.selectedBandIndexes.HeadInt, false); 12746Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 12749if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 12756while (bandIndex < this.selectedBandIndexes.Count) 12758if (this.selectedBandIndexes[bandIndex] != hti.row) 12761SetSelectedRowCore(this.selectedBandIndexes[bandIndex], false); 12794Debug.Assert(this.selectedBandIndexes.Contains(hti.row) == 12801Debug.Assert(this.selectedBandIndexes.Contains(hti.row)); 12822Debug.Assert(this.selectedBandIndexes.Count <= 1); 12823if (this.selectedBandIndexes.Count > 0) 12825SetSelectedRowCore(this.selectedBandIndexes.HeadInt, false); 12839if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 12846while (this.selectedBandIndexes.Count > 0) 12848SetSelectedRowCore(this.selectedBandIndexes.HeadInt, false); 12885Debug.Assert(this.selectedBandIndexes.Count <= 1); 12886if (this.selectedBandIndexes.Count > 0) 12888SetSelectedRowCore(this.selectedBandIndexes.HeadInt, false); 13683this.dataGridViewState2[DATAGRIDVIEWSTATE2_raiseSelectionChanged] = this.selectedBandIndexes.Count > 0 || 13685this.selectedBandIndexes.Clear(); 14243Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 14246if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 14253while (bandIndex < this.selectedBandIndexes.Count) 14255if (this.selectedBandIndexes[bandIndex] != hti.col) 14258SetSelectedColumnCore(this.selectedBandIndexes[bandIndex], false); 14297else if (!this.selectedBandIndexes.Contains(hti.col)) 14333Debug.Assert(this.selectedBandIndexes.Contains(hti.col)); 15966int columnEntries = this.selectedBandIndexes.Count; 15970int columnIndex = this.selectedBandIndexes[columnEntry]; 15973this.selectedBandIndexes[columnEntry] = columnIndex + 1; 16046int rowEntries = this.selectedBandIndexes.Count; 16050int rowIndex = this.selectedBandIndexes[rowEntry]; 16053this.selectedBandIndexes[rowEntry] = rowIndex + insertionCount; 16102int rowEntries = this.selectedBandIndexes.Count; 16106int rowIndex = this.selectedBandIndexes[rowEntry]; 16109this.selectedBandIndexes[rowEntry] = rowIndex + dataGridViewRows.Length; 17658int columnEntries = this.selectedBandIndexes.Count; 17662int columnIndexSelected = this.selectedBandIndexes[columnEntry]; 17665this.selectedBandIndexes.RemoveAt(columnEntry); 17673this.selectedBandIndexes[columnEntry] = columnIndexSelected - 1; 17765int rowEntries = this.selectedBandIndexes.Count; 17769int rowIndex = this.selectedBandIndexes[rowEntry]; 17773this.selectedBandIndexes.RemoveAt(rowEntry); 17780this.selectedBandIndexes[rowEntry] = rowIndex - 1; 18523Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 18526if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 18533while (bandIndex < this.selectedBandIndexes.Count) 18535if (this.selectedBandIndexes[bandIndex] != hti.row) 18538SetSelectedRowCore(this.selectedBandIndexes[bandIndex], false); 18580Debug.Assert(this.selectedBandIndexes.Contains(hti.row) == 18619Debug.Assert(this.selectedBandIndexes.Contains(hti.row)); 20477this.selectedBandSnapshotIndexes = new DataGridViewIntLinkedList(this.selectedBandIndexes); 24471if (this.selectedBandIndexes.Count > DATAGRIDVIEW_bulkPaintThreshold) 24481Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 24483while (bandIndex < this.selectedBandIndexes.Count) 24485if (this.selectedBandIndexes[bandIndex] != this.ptCurrentCell.X) 24488SetSelectedColumnCore(this.selectedBandIndexes[bandIndex], false); 24498Debug.Assert(!this.selectedBandIndexes.Contains(this.ptCurrentCell.X)); 24506Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 24508while (bandIndex < this.selectedBandIndexes.Count) 24510if (this.selectedBandIndexes[bandIndex] != this.ptCurrentCell.Y) 24513SetSelectedRowCore(this.selectedBandIndexes[bandIndex], false); 24523Debug.Assert(!this.selectedBandIndexes.Contains(this.ptCurrentCell.Y)); 25723if (column.Selected && (!this.selectedBandIndexes.Contains(column.Index))) 25725this.selectedBandIndexes.Add(column.Index); 26748int selectedBand = 0, selectedBands = this.selectedBandIndexes.Count; 26758int columnIndex = this.selectedBandIndexes[selectedBand]; 26773int selectedBand = 0, selectedBands = this.selectedBandIndexes.Count; 26783int rowIndex = this.selectedBandIndexes[selectedBand]; 27316if (!this.selectedBandIndexes.Contains(columnIndex)) 27323Debug.Assert(this.selectedBandIndexes.Contains(columnIndex)); 27341if (!this.selectedBandIndexes.Contains(columnIndexTo)) 27348Debug.Assert(this.selectedBandIndexes.Contains(columnIndexTo)); 27376Debug.Assert(!this.selectedBandIndexes.Contains(rowIndex)); 27385Debug.Assert(this.selectedBandIndexes.Contains(rowIndex)); 27427if (this.MultiSelect && (this.individualSelectedCells.Count + this.selectedBandIndexes.Count) > 1) 27439else if (this.selectedBandIndexes.Count == 1) 27446if (this.selectedBandIndexes.HeadInt != columnIndex) 27455if (this.selectedBandIndexes.HeadInt != rowIndex) 27678Debug.Assert(this.selectedBandIndexes.Contains(columnIndex)); 27679this.selectedBandIndexes.Remove(columnIndex); 27712Debug.Assert(this.selectedBandIndexes.Contains(rowIndex)); 27713this.selectedBandIndexes.Remove(rowIndex); 27787Debug.Assert(this.selectedBandIndexes.Count <= 1); 27789while (bandIndex < this.selectedBandIndexes.Count) 27791if (this.selectedBandIndexes[bandIndex] != columnIndex) 27794SetSelectedColumnCore(this.selectedBandIndexes[bandIndex], false); 27802if (!this.selectedBandIndexes.Contains(columnIndex)) 27809if (this.selectedBandIndexes.Contains(columnIndex)) 27823Debug.Assert(this.selectedBandIndexes.Count <= 1); 27824if (this.selectedBandIndexes.Count > 0) 27826SetSelectedColumnCore(this.selectedBandIndexes.HeadInt, false); 27839Debug.Assert(this.selectedBandIndexes.Count <= 1); 27840if (this.selectedBandIndexes.Count > 0) 27842SetSelectedColumnCore(this.selectedBandIndexes.HeadInt, false); 27863Debug.Assert(this.selectedBandIndexes.Count <= 1); 27865while (bandIndex < this.selectedBandIndexes.Count) 27867if (this.selectedBandIndexes[bandIndex] != rowIndex) 27870SetSelectedRowCore(this.selectedBandIndexes[bandIndex], false); 27880Debug.Assert(this.selectedBandIndexes.Contains(rowIndex) == 27889Debug.Assert(this.selectedBandIndexes.Contains(rowIndex) == 27903Debug.Assert(this.selectedBandIndexes.Count <= 1); 27904if (this.selectedBandIndexes.Count > 0) 27906SetSelectedRowCore(this.selectedBandIndexes.HeadInt, false); 27919Debug.Assert(this.selectedBandIndexes.Count <= 1); 27920if (this.selectedBandIndexes.Count > 0) 27922SetSelectedRowCore(this.selectedBandIndexes.HeadInt, false); 27970Debug.Assert(!this.selectedBandIndexes.Contains(columnIndex)); 27971this.selectedBandIndexes.Add(columnIndex); 27976Debug.Assert(this.selectedBandIndexes.Contains(columnIndex)); 27978this.selectedBandIndexes.Remove(columnIndex); 27989Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 28001Debug.Assert(this.selectedBandIndexes.Count <= 1); 28002if (this.selectedBandIndexes.Count > 0) 28004int columnIndexSelected = this.selectedBandIndexes.HeadInt; 28085Debug.Assert(!this.selectedBandIndexes.Contains(rowIndex)); 28086this.selectedBandIndexes.Add(rowIndex); 28092Debug.Assert(this.selectedBandIndexes.Contains(rowIndex)); 28093this.selectedBandIndexes.Remove(rowIndex); 28105Debug.Assert(this.MultiSelect || this.selectedBandIndexes.Count <= 1); 28117Debug.Assert(this.selectedBandIndexes.Count <= 1); 28118if (this.selectedBandIndexes.Count > 0) 28120int rowIndexSelected = this.selectedBandIndexes.HeadInt; 28366int row1Selected = this.selectedBandIndexes.IndexOf(rowIndex1); 28367int row2Selected = this.selectedBandIndexes.IndexOf(rowIndex2); 28370this.selectedBandIndexes[row1Selected] = rowIndex2; 28374this.selectedBandIndexes[row2Selected] = rowIndex1;