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