78 writes to NullValue
PresentationUI (2)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (2)
464NullValue = string.Empty, 472NullValue = false
System.Windows.Forms (32)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
2863inheritedCellStyle.NullValue = cellStyle.NullValue; 2867inheritedCellStyle.NullValue = columnHeadersStyle.NullValue; 2871inheritedCellStyle.NullValue = dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
2063inheritedCellStyleTmp.NullValue = cellStyle.NullValue; 2067inheritedCellStyleTmp.NullValue = rowStyle.NullValue; 2072inheritedCellStyleTmp.NullValue = DataGridView.RowsDefaultCellStyle.NullValue; 2077inheritedCellStyleTmp.NullValue = DataGridView.AlternatingRowsDefaultCellStyle.NullValue; 2081inheritedCellStyleTmp.NullValue = columnStyle.NullValue; 2085inheritedCellStyleTmp.NullValue = dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (2)
50NullValue = dataGridViewCellStyle.NullValue; 405NullValue = dataGridViewCellStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (3)
23NullValue = threeState ? CheckState.Indeterminate : false 229DefaultCellStyle.NullValue = CheckState.Indeterminate; 233DefaultCellStyle.NullValue = false;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
492inheritedCellStyleTmp.NullValue = columnStyle.NullValue; 496inheritedCellStyleTmp.NullValue = dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
369inheritedCellStyleTmp.NullValue = cellStyle.NullValue; 373inheritedCellStyleTmp.NullValue = columnHeadersStyle.NullValue; 377inheritedCellStyleTmp.NullValue = dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (3)
28NullValue = valuesAreIcons 225DefaultCellStyle.NullValue = DataGridViewImageCell.ErrorIcon; 231DefaultCellStyle.NullValue = DataGridViewImageCell.ErrorBitmap;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (7)
682inheritedCellStyle.NullValue = cellStyle.NullValue; 686inheritedCellStyle.NullValue = rowHeadersStyle.NullValue; 690inheritedCellStyle.NullValue = dataGridViewStyle.NullValue; 901inheritedRowStyle.NullValue = rowStyle.NullValue; 906inheritedRowStyle.NullValue = rowsDefaultCellStyle.NullValue; 910inheritedRowStyle.NullValue = alternatingRowsDefaultCellStyle.NullValue; 914inheritedRowStyle.NullValue = dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
394inheritedCellStyleTmp.NullValue = cellStyle.NullValue; 398inheritedCellStyleTmp.NullValue = rowHeadersStyle.NullValue; 402inheritedCellStyleTmp.NullValue = dataGridViewStyle.NullValue;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
422destColumn.DefaultCellStyle.NullValue = srcNullValue;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
271_dgvCellStyle.NullValue = _formatControl1.NullValue;
System.Windows.Forms.Tests (42)
System\Windows\Forms\DataGridViewCellStyleTests.cs (30)
51NullValue = "null", 396NullValue = value 402style.NullValue = value; 413NullValue = "oldValue" 415style.NullValue = value; 420style.NullValue = value; 431NullValue = null 433style.NullValue = value; 438style.NullValue = value; 449NullValue = value 451style.NullValue = new AlwaysEqual(); 462NullValue = value 464style.NullValue = "value"; 474NullValue = "value" 476style.NullValue = string.Empty; 628NullValue = "null", 671NullValue = "null", 719NullValue = "null", 785NullValue = "null", 943new DataGridViewCellStyle { NullValue = "null" }, 944new DataGridViewCellStyle { NullValue = "null" }, 949new DataGridViewCellStyle { NullValue = "null" }, 950new DataGridViewCellStyle { NullValue = "other" }, 955new DataGridViewCellStyle { NullValue = null }, 956new DataGridViewCellStyle { NullValue = null }, 961new DataGridViewCellStyle { NullValue = null }, 962new DataGridViewCellStyle { NullValue = "other" }, 1087new DataGridViewCellStyle { NullValue = "null" }, 1092new DataGridViewCellStyle { NullValue = null }, 1133NullValue = "null",
System\Windows\Forms\DataGridViewCellTests.cs (10)
6096yield return new object[] { typeof(string), typeof(string), "null", new DataGridViewCellStyle { NullValue = "null" }, null, null, null }; 6097yield return new object[] { typeof(object), typeof(string), "null", new DataGridViewCellStyle { NullValue = "null" }, null, null, null }; 6098yield return new object[] { typeof(object), typeof(string), "s", new DataGridViewCellStyle { NullValue = "null" }, null, null, "s" }; 6099yield return new object[] { typeof(object), typeof(string), "longer", new DataGridViewCellStyle { NullValue = "null" }, null, null, "longer" }; 6100yield return new object[] { typeof(object), typeof(string), "abcd", new DataGridViewCellStyle { NullValue = "null" }, null, null, "abcd" }; 6101yield return new object[] { typeof(object), typeof(string), "null", new DataGridViewCellStyle { NullValue = "null" }, null, null, null }; 6102yield return new object[] { typeof(int), typeof(int), 1, new DataGridViewCellStyle { NullValue = 1 }, null, null, DBNull.Value }; 6103yield return new object[] { typeof(int), typeof(int), 2, new DataGridViewCellStyle { NullValue = 1 }, null, null, 2 }; 6104yield return new object[] { typeof(string), typeof(string), "null", new DataGridViewCellStyle { NullValue = "null", DataSourceNullValue = "dbNull" }, null, null, "dbNull" }; 6105yield return new object[] { typeof(int), typeof(int), 1, new DataGridViewCellStyle { NullValue = 1, DataSourceNullValue = "dbNull" }, null, null, "dbNull" };
System\Windows\Forms\DataGridViewRowTests.cs (2)
2073NullValue = "null", 2089NullValue = "null2",
64 references to NullValue
System.Windows.Forms (43)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
2863inheritedCellStyle.NullValue = cellStyle.NullValue; 2867inheritedCellStyle.NullValue = columnHeadersStyle.NullValue; 2871inheritedCellStyle.NullValue = dataGridViewStyle.NullValue; 25293object? nullValue = dataGridViewCurrentCell.GetInheritedStyle(inheritedCellStyle: null, _ptCurrentCell.Y, includeColors: false).NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (9)
1623cellStyle.NullValue, 1648cellStyle.NullValue is null && 2063inheritedCellStyleTmp.NullValue = cellStyle.NullValue; 2067inheritedCellStyleTmp.NullValue = rowStyle.NullValue; 2072inheritedCellStyleTmp.NullValue = DataGridView.RowsDefaultCellStyle.NullValue; 2077inheritedCellStyleTmp.NullValue = DataGridView.AlternatingRowsDefaultCellStyle.NullValue; 2081inheritedCellStyleTmp.NullValue = columnStyle.NullValue; 2085inheritedCellStyleTmp.NullValue = dataGridViewStyle.NullValue; 3742cellStyle.NullValue,
System\Windows\Forms\Controls\DataGridView\DataGridViewCellStyle.cs (8)
50NullValue = dataGridViewCellStyle.NullValue; 246object? originalValue = NullValue; 405NullValue = dataGridViewCellStyle.NullValue; 459dgvcs.NullValue != NullValue || 496hash.Add(NullValue); 588if (!IsNullValueDefault && NullValue is not null) 595sb.Append($" NullValue={NullValue}");
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxColumn.cs (3)
227if (value && DefaultCellStyle.NullValue is bool boolValue && !boolValue) 231else if (!value && DefaultCellStyle.NullValue is CheckState state && state == CheckState.Indeterminate) 305!defaultNullValue.Equals(defaultCellStyle.NullValue) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (2)
492inheritedCellStyleTmp.NullValue = columnStyle.NullValue; 496inheritedCellStyleTmp.NullValue = dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (3)
369inheritedCellStyleTmp.NullValue = cellStyle.NullValue; 373inheritedCellStyleTmp.NullValue = columnHeadersStyle.NullValue; 377inheritedCellStyleTmp.NullValue = dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (1)
370if (formattedValue is null && cellStyle.NullValue is null)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageColumn.cs (3)
222DefaultCellStyle.NullValue is Bitmap bitmap && 228DefaultCellStyle.NullValue is Icon icon && 281!defaultNullValue.Equals(defaultCellStyle.NullValue) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (7)
682inheritedCellStyle.NullValue = cellStyle.NullValue; 686inheritedCellStyle.NullValue = rowHeadersStyle.NullValue; 690inheritedCellStyle.NullValue = dataGridViewStyle.NullValue; 901inheritedRowStyle.NullValue = rowStyle.NullValue; 906inheritedRowStyle.NullValue = rowsDefaultCellStyle.NullValue; 910inheritedRowStyle.NullValue = alternatingRowsDefaultCellStyle.NullValue; 914inheritedRowStyle.NullValue = dataGridViewStyle.NullValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (3)
394inheritedCellStyleTmp.NullValue = cellStyle.NullValue; 398inheritedCellStyleTmp.NullValue = rowHeadersStyle.NullValue; 402inheritedCellStyleTmp.NullValue = dataGridViewStyle.NullValue;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (2)
417object? srcNullValue = srcColumn.DefaultCellStyle.NullValue; 418object? destNullValue = destColumn.DefaultCellStyle.NullValue;
System\Windows\Forms\Design\FormatStringDialog.cs (1)
114object? nullValue = _dgvCellStyle?.NullValue;
System.Windows.Forms.Tests (18)
System\Windows\Forms\DataGridViewCellStyleTests.cs (18)
30Assert.Equal(string.Empty, style.NullValue); 71Assert.Equal("null", style.NullValue); 96Assert.Equal(string.Empty, style.NullValue); 398Assert.Equal(value, style.NullValue); 403Assert.Equal(value, style.NullValue); 416Assert.Equal(value, style.NullValue); 421Assert.Equal(value, style.NullValue); 434Assert.Equal(value, style.NullValue); 439Assert.Equal(value, style.NullValue); 452Assert.Same(value, style.NullValue); 465Assert.Equal("value", style.NullValue); 477Assert.Equal(string.Empty, style.NullValue); 649Assert.Equal("null", style.NullValue); 691Assert.Equal("null", style.NullValue); 739Assert.Equal("null", style.NullValue); 764Assert.Equal(string.Empty, style.NullValue); 805Assert.Equal("null", style.NullValue); 830Assert.Equal(string.Empty, style.NullValue);