70 references to Columns
PresentationFramework (70)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (5)
132return this.OwningDataGrid.Columns.Count; 147column >= 0 && column < this.OwningDataGrid.Columns.Count) 150DataGridColumn dataGridColumn = this.OwningDataGrid.Columns[column]; 246for (int i = 0; i < this.OwningDataGrid.Columns.Count; i++) 248AutomationPeer peer = dataGridColumnHeadersPresenterPeer.FindOrCreateItemAutomationPeer(this.OwningDataGrid.Columns[i]);
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
519return this.OwningDataGrid.Columns.IndexOf(this._column);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (3)
66if (OwningDataGrid?.Columns.Count > 0) 82childItems = OwningDataGrid.Columns; 170items = OwningDataGrid.Columns;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (6)
141IList<DataGridColumn> columns = OwningDataGrid.Columns; 235if (this.OwningDataGrid.Columns.Count > 0) 237DataGridCell cell = this.OwningDataGrid.TryFindCell(item, this.OwningDataGrid.Columns[0]); 376for (int i = 0; i < this.OwningDataGrid.Columns.Count; i++) 430childItems = OwningDataGrid.Columns; 532IList<DataGridColumn> columns = OwningDataGrid.Columns;
System\Windows\Controls\DataGrid.cs (17)
297column.DataGridOwner.Columns.Remove(column); 382if (displayIndex < 0 || displayIndex >= Columns.Count) 2186_selectedCells.RemoveRegion(newItemIndex, 0, 1, Columns.Count); 2224_selectedCells.RemoveRegion(newItemIndex + 1, 0, 1, Columns.Count); 3709_selectedCells.RemoveRegion(newItemIndex, 0, 1, Columns.Count); 4941_selectedCells.RemoveRegion(removeRangeStartIndex, 0, removeRangeEndIndex - removeRangeStartIndex + 1, Columns.Count); 5735int columnCount = Columns.Count; 5747if (nextDisplayIndex >= Columns.Count) 7173if (Columns != null) 7175foreach (DataGridColumn column in Columns) 7599foreach (DataGridColumn column in Columns) 7826for (int columnIndex = Columns.Count - 1; columnIndex >= 0; --columnIndex) 7828if (Columns[columnIndex].IsAutoGenerated) 7830Columns.RemoveAt(columnIndex); 7897dataGrid.Columns.Add(eventArgs.Column); 7964if (frozenColumnCount > dataGrid.Columns.Count) 7966return dataGrid.Columns.Count;
System\Windows\Controls\DataGridCell.cs (2)
98if ((index >= 0) && (index < dataGrid.Columns.Count)) 101DataGridColumn column = dataGrid.Columns[index];
System\Windows\Controls\DataGridCellsPanel.cs (14)
196measureWidth += GetColumnEstimatedMeasureWidthSum(blockList[blockList.Count - 1].EndIndex + 1, parentDataGrid.Columns.Count - 1, averageColumnWidth); 264for (int i = 0, count = parentDataGrid.Columns.Count; i < count; i++) 602if (!parentDataGrid.Columns[i].IsVisible) 607if (null == GenerateChild(generator, constraint, parentDataGrid.Columns[i], ref childIndex, out childSize)) 829int columnCount = parentDataGrid.Columns.Count; 835DataGridColumn column = parentDataGrid.Columns[i]; 1032ObservableCollection<DataGridColumn> columns = parentDataGrid.Columns; 1387for (int i = 0, count = parentDataGrid.Columns.Count; i < count; i++) 1597columnIndex = parentDataGrid.Columns.IndexOf(cell.Column); 1639DataGridColumnCollection columns = (DataGridColumnCollection)ParentDataGrid.Columns; 1921measureWidth += GetColumnEstimatedMeasureWidth(parentDataGrid.Columns[i], averageColumnWidth); 2150ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, parentDataGrid.Columns.Count); 2232if (parentDataGrid != null && 0 <= index && index < parentDataGrid.Columns.Count) 2391return parentDataGrid.Columns;
System\Windows\Controls\DataGridColumn.cs (1)
640int columnIndex = _dataGridOwner.Columns.IndexOf(this);
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
117ObservableCollection<DataGridColumn> columns = dataGridOwner.Columns; 624return (owningDataGrid != null) ? owningDataGrid.Columns : null;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
545int columnCount = dataGrid.Columns.Count;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
71ItemsSource = new DataGridColumnHeaderCollection(grid.Columns); 952for (i = 0; i < dataGrid.Columns.Count; i++) 1014if (i == dataGrid.Columns.Count) 1016displayIndex = dataGrid.Columns.Count - 1;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (13)
980int numColumns = _owner.Columns.Count; 1009int numColumns = _owner.Columns.Count; 1046RemoveRegion(rowIndex, 0, 1, _owner.Columns.Count, ref removedRegions); 1065int numColumns = _owner.Columns.Count; 1153int numColumns = _owner.Columns.Count; 1197int numColumns = _owner.Columns.Count; 1256int numColumns = _owner.Columns.Count; 1394int numColumns = _owner.Columns.Count; 1435int numColumns = _owner.Columns.Count; 1479RemoveAllButRegion(rowIndex, 0, 1, _owner.Columns.Count); 1505CellRegion rowRegion = new CellRegion(0, rowIndex, _owner.Columns.Count, 1); 1530CellRegion rowRegion = new CellRegion(0, rowIndex, _owner.Columns.Count, 1); 1611(rowIndex < owner.Items.Count) && (columnIndex < owner.Columns.Count))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12388"Columns:", dg.Columns.Count,