83 writes to ColumnHeadersVisible
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
179_sampleDataGridView.ColumnHeadersVisible = false; 192_sampleDataGridViewSelected.ColumnHeadersVisible = false;
System.Windows.Forms.Tests (81)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (14)
89dataGridView.ColumnHeadersVisible = false; 123dataGridView.ColumnHeadersVisible = false; 629ColumnHeadersVisible = false 648ColumnHeadersVisible = false 667ColumnHeadersVisible = false 742ColumnHeadersVisible = false 763ColumnHeadersVisible = false 784ColumnHeadersVisible = false 875ColumnHeadersVisible = false 895ColumnHeadersVisible = false 915ColumnHeadersVisible = false 997ColumnHeadersVisible = false 1017ColumnHeadersVisible = false 1037ColumnHeadersVisible = false
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (16)
518using DataGridView dataGridView = new() { ColumnHeadersVisible = false, AllowUserToAddRows = false }; 541using DataGridView dataGridView = new() { ColumnHeadersVisible = false, AllowUserToAddRows = false }; 562using DataGridView dataGridView = new() { ColumnHeadersVisible = false, AllowUserToAddRows = false }; 583using DataGridView dataGridView = new() { ColumnHeadersVisible = false, AllowUserToAddRows = false }; 604using DataGridView dataGridView = new() { ColumnHeadersVisible = false }; 630using DataGridView dataGridView = new() { ColumnHeadersVisible = false }; 655using DataGridView dataGridView = new() { ColumnHeadersVisible = false }; 680using DataGridView dataGridView = new() { ColumnHeadersVisible = false }; 913using DataGridView dataGridView = new() { ColumnHeadersVisible = false, AllowUserToAddRows = false }; 936using DataGridView dataGridView = new() { ColumnHeadersVisible = false, AllowUserToAddRows = false }; 957using DataGridView dataGridView = new() { ColumnHeadersVisible = false, AllowUserToAddRows = false }; 978using DataGridView dataGridView = new() { ColumnHeadersVisible = false, AllowUserToAddRows = false }; 999using DataGridView dataGridView = new() { ColumnHeadersVisible = false }; 1025using DataGridView dataGridView = new() { ColumnHeadersVisible = false }; 1050using DataGridView dataGridView = new() { ColumnHeadersVisible = false }; 1075using DataGridView dataGridView = new() { ColumnHeadersVisible = false };
System\Windows\Forms\DataGridViewCellTests.cs (5)
430ColumnHeadersVisible = columnHeadersVisible 472ColumnHeadersVisible = columnHeadersVisible 497ColumnHeadersVisible = columnHeadersVisible 537ColumnHeadersVisible = columnHeadersVisible 3033ColumnHeadersVisible = columnHeadersVisible
System\Windows\Forms\DataGridViewColumnCollectionTests.cs (2)
179ColumnHeadersVisible = columnHeadersVisible 435ColumnHeadersVisible = false
System\Windows\Forms\DataGridViewColumnTests.cs (6)
184ColumnHeadersVisible = columnHeadersVisible 232ColumnHeadersVisible = columnHeadersVisible 259ColumnHeadersVisible = false 278ColumnHeadersVisible = false 298ColumnHeadersVisible = false 1612ColumnHeadersVisible = columnHeadersVisible,
System\Windows\Forms\DataGridViewHeaderCellTests.cs (15)
118ColumnHeadersVisible = columnHeadersVisible 143ColumnHeadersVisible = columnHeadersVisible 166ColumnHeadersVisible = columnHeadersVisible 207ColumnHeadersVisible = columnHeadersVisible, 239ColumnHeadersVisible = columnHeadersVisible 272ColumnHeadersVisible = columnHeadersVisible 308ColumnHeadersVisible = columnHeadersVisible 342ColumnHeadersVisible = columnHeadersVisible 407ColumnHeadersVisible = columnHeadersVisible 519ColumnHeadersVisible = columnHeadersVisible, 1907ColumnHeadersVisible = columnHeadersVisible 1932ColumnHeadersVisible = columnHeadersVisible 1958ColumnHeadersVisible = columnHeadersVisible 1991ColumnHeadersVisible = columnHeadersVisible, 2705ColumnHeadersVisible = columnHeadersVisible
System\Windows\Forms\DataGridViewRowTests.cs (7)
3721ColumnHeadersVisible = rowHeadersVisible, 4710ColumnHeadersVisible = false 4783ColumnHeadersVisible = false, 5156ColumnHeadersVisible = false 5229ColumnHeadersVisible = false, 5476ColumnHeadersVisible = false 5549ColumnHeadersVisible = false,
System\Windows\Forms\DataGridViewTests.cs (15)
68ColumnHeadersVisible = columnHeadersVisible, 117ColumnHeadersVisible = columnHeadersVisible, 193ColumnHeadersVisible = columnHeadersVisible, 259ColumnHeadersVisible = columnHeadersVisible, 511ColumnHeadersVisible = columnHeadersVisible, 546ColumnHeadersVisible = columnHeadersVisible 1739ColumnHeadersVisible = columnHeadersVisible, 1797ColumnHeadersVisible = columnHeadersVisible 1866ColumnHeadersVisible = columnHeadersVisible 1888ColumnHeadersVisible = columnHeadersVisible 1932ColumnHeadersVisible = columnHeadersVisible 1964ColumnHeadersVisible = columnHeadersVisible 2004ColumnHeadersVisible = columnHeadersVisible 2030ColumnHeadersVisible = columnHeadersVisible 2070ColumnHeadersVisible = columnHeadersVisible
System\Windows\Forms\DataGridViewTests.Rendering.cs (1)
24ColumnHeadersVisible = false,
59 references to ColumnHeadersVisible
System.Windows.Forms (59)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (4)
71if (index < 1 && owner.ColumnHeadersVisible) 76if (owner.ColumnHeadersVisible) 122if (owner.ColumnHeadersVisible) 290if (!this.TryGetOwnerAs(out DataGridView? owner) || !owner.ColumnHeadersVisible)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
906if (value == DataGridViewAutoSizeColumnsMode.ColumnHeader && !ColumnHeadersVisible) 1642if (ColumnHeadersVisible != value) 4064if (ColumnHeadersVisible && RowHeadersVisible)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (22)
36int topHeaderRowIncrement = ColumnHeadersVisible ? 1 : 0; 1717if (autoSizeColumnMode == DataGridViewAutoSizeColumnMode.ColumnHeader && !ColumnHeadersVisible) 1737if (!ColumnHeadersVisible) 1803if (!ColumnHeadersVisible) 6626if (!ColumnHeadersVisible && Rows.GetRowCount(DataGridViewElementStates.Visible) == 0) 7168includeColumnHeaders &= ColumnHeadersVisible; 7452includeColumnHeaders &= ColumnHeadersVisible; 7773includeColumnHeaders &= ColumnHeadersVisible; 7779if (ColumnHeadersVisible) 9010if (ColumnHeadersVisible) 9460if (ColumnHeadersVisible && ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.EnableResizing) 9496if (!ColumnHeadersVisible) 9600if (ColumnHeadersVisible && ColumnHeadersHeightSizeMode == DataGridViewColumnHeadersHeightSizeMode.EnableResizing) 9613&& ColumnHeadersVisible 10758if (!ColumnHeadersVisible 10890if (!ColumnHeadersVisible 13582if (!ColumnHeadersVisible) 13900if (ColumnHeadersVisible) 14075bool fixedColumnWidth = autoSizeColumnCriteriaFiltered == 0 || !ColumnHeadersVisible; 14271bool fixedColumnWidth = autoSizeColumnCriteriaFiltered == 0 || !ColumnHeadersVisible; 14699&& !ColumnHeadersVisible) 15377if (!ColumnHeadersVisible
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
35if (_ownerDataGridView.IsHandleCreated && _ownerDataGridView.ColumnHeadersVisible)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
960bool singleHorizontalBorderAdded = !DataGridView.ColumnHeadersVisible && DataGridView.AdvancedCellBorderStyle.All == DataGridViewAdvancedCellBorderStyle.Single;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (2)
469return _owner.DataGridView.ColumnHeadersVisible 729if (_owner is { OwningColumn.HasHeaderCell: true, DataGridView: { IsHandleCreated: true, ColumnHeadersVisible: true } })
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
976int topHeaderRowIncrement = DataGridView.ColumnHeadersVisible ? 1 : 0;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (3)
98if (!DataGridView.ColumnHeadersVisible && 926Debug.Assert(dataGridView.ColumnHeadersVisible || autoSizeColumnCriteriaInternal != DataGridViewAutoSizeColumnCriteriaInternal.Header); 929if (dataGridView.ColumnHeadersVisible &&
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (1)
1753bool singleHorizontalBorderAdded = !DataGridView.ColumnHeadersVisible && DataGridView.AdvancedCellBorderStyle.All == DataGridViewAdvancedCellBorderStyle.Single;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (5)
70return DataGridView.ColumnHeadersVisible && OwningColumn.Displayed; 177(DataGridView is null || DataGridView.ColumnHeadersVisible); 183return DataGridView.RowHeadersVisible && DataGridView.ColumnHeadersVisible; 271if (OwningColumn.Visible && (DataGridView is null || DataGridView.ColumnHeadersVisible)) 291if (DataGridView.RowHeadersVisible && DataGridView.ColumnHeadersVisible)
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (10)
367if (isFirstDisplayedRow && !DataGridView.ColumnHeadersVisible) 382if (isFirstDisplayedRow && !DataGridView.ColumnHeadersVisible) 397if (isFirstDisplayedRow && !DataGridView.ColumnHeadersVisible) 420if (isFirstDisplayedRow && !DataGridView.ColumnHeadersVisible) 443if (isFirstDisplayedRow && !DataGridView.ColumnHeadersVisible) 466if (isFirstDisplayedRow && !DataGridView.ColumnHeadersVisible) 523dataGridViewAdvancedBorderStylePlaceholder.TopInternal = DataGridView is not null && DataGridView.ColumnHeadersVisible ? DataGridViewAdvancedCellBorderStyle.Outset : DataGridViewAdvancedCellBorderStyle.OutsetDouble; 547dataGridViewAdvancedBorderStylePlaceholder.TopInternal = DataGridView is not null && DataGridView.ColumnHeadersVisible ? DataGridViewAdvancedCellBorderStyle.Outset : DataGridViewAdvancedCellBorderStyle.OutsetDouble; 571dataGridViewAdvancedBorderStylePlaceholder.TopInternal = DataGridView is not null && DataGridView.ColumnHeadersVisible ? DataGridViewAdvancedCellBorderStyle.Inset : DataGridViewAdvancedCellBorderStyle.InsetDouble; 582if (!isFirstDisplayedRow || (DataGridView is not null && DataGridView.ColumnHeadersVisible))
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (3)
35? dataGridView.ColumnHeadersVisible 65if (_owningDataGridViewRow.DataGridView.ColumnHeadersVisible) 360else if (_owningDataGridViewRow.DataGridView.ColumnHeadersVisible)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (3)
163if (Owner.DataGridView.ColumnHeadersVisible) 176if (!Owner.DataGridView.ColumnHeadersVisible) 189if (Owner.DataGridView.ColumnHeadersVisible)