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