41 writes to HeaderText
DesignSurface (1)
MainForm.cs (1)
283comboBoxColumn.HeaderText = "Column1";
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
321header.HeaderText = text;
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (1)
959dataGridViewColumn.HeaderText = !string.IsNullOrEmpty(_props[i].DisplayName) ? _props[i].DisplayName : _props[i].Name;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
827dataGridViewColumn.HeaderText = HeaderText;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnCollection.cs (1)
134HeaderText = headerText
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (2)
95column.HeaderText = _headerTextBox.Text; 108column.HeaderText = _headerTextBox.Text;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
305destColumn.HeaderText = srcColumn.HeaderText;
System\Windows\Forms\Design\DataGridViewDesigner.cs (1)
667dataGridViewColumn.HeaderText = !string.IsNullOrEmpty(backEndProps[i].DisplayName) ? backEndProps[i].DisplayName : backEndProps[i].Name;
System.Windows.Forms.Tests (12)
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (3)
35HeaderText = "Some column" 55HeaderText = "Sortable" 61HeaderText = "Not Sortable"
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (4)
218OwningColumn = new DataGridViewTextBoxColumn() { HeaderText = "Test", SortMode = DataGridViewColumnSortMode.NotSortable } 231DataGridViewTextBoxColumn column = new() { HeaderText = "Test", SortMode = DataGridViewColumnSortMode.NotSortable }; 249DataGridViewTextBoxColumn column = new() { HeaderText = "Test", SortMode = DataGridViewColumnSortMode.NotSortable }; 268DataGridViewTextBoxColumn column = new() { HeaderText = "Test", SortMode = DataGridViewColumnSortMode.NotSortable };
System\Windows\Forms\AccessibleObjects\DataGridViewTopRowAccessibleObjectTests.cs (2)
16DataGridViewTextBoxColumn dataGridViewColumn = new() { Name = "Col 1", HeaderText = "Col 1" }; 37DataGridViewTextBoxColumn dataGridViewColumn = new() { Name = "Col 1", HeaderText = "Col 1" };
System\Windows\Forms\DataGridViewColumnConverterTests.cs (1)
29_column.HeaderText = "Test Header";
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
142DataGridViewTextBoxColumn column1 = new() { HeaderText = "Style" }; 143DataGridViewTextBoxColumn column2 = new() { HeaderText = "Font" };
TestPassApp (8)
DataControls.Designer.cs (8)
285this.Column1.HeaderText = "Name"; 290this.Column2.HeaderText = "City"; 299this.Column3.HeaderText = "Country"; 307this.Column4.HeaderText = "IsHealthy"; 313this.Column5.HeaderText = "Gender"; 321this.Column6.HeaderText = "Photo"; 326this.Column7.HeaderText = "Address"; 333this.Column8.HeaderText = "Comment";
WinFormsControlsTest (12)
DataGridViewInVirtualModeTest.Designer.cs (4)
61this.personNameColumn.HeaderText = "Name"; 66this.ageColumn.HeaderText = "Age"; 71this.hasAJobColumn.HeaderText = "Has a job"; 76this.genderColumn.HeaderText = "Gender";
DataGridViewTest.Designer.cs (8)
91this.column1.HeaderText = "Column1"; 96this.column2.HeaderText = "Column2"; 101this.column3.HeaderText = "Column3"; 106this.column4.HeaderText = "Column4"; 113this.column5.HeaderText = "Hidden Column"; 119this.column6.HeaderText = "Column6"; 124this.column7.HeaderText = "Column7"; 131this.column8.HeaderText = "Column8";
17 references to HeaderText
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridView.AccessibleObject.cs (2)
248return (VARIANT)string.Format(SR.DataGridViewSortedAscendingAccessibleStatusFormat, owner.SortedColumn?.HeaderText); 250return (VARIANT)string.Format(SR.DataGridViewSortedDescendingAccessibleStatusFormat, owner.SortedColumn?.HeaderText);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
64string name = string.Format(SR.DataGridView_AccDataGridViewCellName, _owner.OwningColumn.HeaderText, rowIndex).Trim();
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
827dataGridViewColumn.HeaderText = HeaderText;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellAccessibleObject.cs (1)
63: Owner.OwningColumn?.HeaderText ?? string.Empty;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
305destColumn.HeaderText = srcColumn.HeaderText; 1238return DataGridViewColumn.HeaderText;
System.Windows.Forms.Tests (10)
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (4)
221string expected = string.Format(SR.DataGridView_AccDataGridViewCellName, cell.OwningColumn.HeaderText, -1); 238string expected = string.Format(SR.DataGridView_AccDataGridViewCellName, column.HeaderText, 3); 257string expected = string.Format(SR.DataGridView_AccDataGridViewCellName, column.HeaderText, 2); 277string expected = string.Format(SR.DataGridView_AccDataGridViewCellName, column.HeaderText, 1);
System\Windows\Forms\DataGridViewColumnTests.cs (4)
35Assert.Empty(column.HeaderText); 82Assert.Empty(column.HeaderText); 1355Assert.Empty(column.HeaderText); 1367Assert.Empty(column.HeaderText);
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
178Validate.TextOut(column1.HeaderText, stateValidators: State.FontFace(customColumnHeaderFont.Name))), 180Validate.TextOut(column2.HeaderText, stateValidators: State.FontFace(customColumnHeaderFont.Name))),