20 references to FormattedValue
System.Windows.Forms (5)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
190object? formattedValue = _owner.FormattedValue;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (3)
337if ((!EditingCellValueChanged && FormattedValue is CheckState checkState && checkState == CheckState.Indeterminate) || 343if ((!EditingCellValueChanged && FormattedValue is CheckState checkState2 && checkState2 == CheckState.Checked) || 349if ((!EditingCellValueChanged && FormattedValue is bool boolValue && boolValue) ||
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellAccessibleObject.cs (1)
63switch (Owner.FormattedValue)
System.Windows.Forms.Tests (15)
System\Windows\Forms\DataGridViewCellTests.cs (10)
31Assert.Null(cell.FormattedValue); 1252Assert.Null(cell.FormattedValue); 1262Assert.Null(cell.FormattedValue); 1271Assert.Null(cell.FormattedValue); 1280Assert.Null(cell.FormattedValue); 1295Assert.Empty((string)cell.FormattedValue); 1311Assert.Equal("Value", (string)cell.FormattedValue); 1325Assert.Throws<ArgumentOutOfRangeException>("rowIndex", () => cell.FormattedValue); 3346Assert.Null(cell.FormattedValue); 3383Assert.Null(cell.FormattedValue);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (5)
29Assert.Null(cell.FormattedValue); 2048Assert.Null(cell.FormattedValue); 2085Assert.Null(cell.FormattedValue); 2134Assert.Null(cell.FormattedValue); 2171Assert.Null(cell.FormattedValue);