Skip to content

Commit

Permalink
Merge pull request #1802 from giduac/1800-V85-EditingControlFormatted…
Browse files Browse the repository at this point in the history
…Value-is-differently-implemented

1800-V85-EditingControlFormattedValue-is-differently-implemented
  • Loading branch information
Smurf-IV authored Oct 6, 2024
2 parents 48f6338 + 0fe9c8d commit f0a8fb6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions Documents/Help/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
=======

# 2024-10-14 - Build 2410 (Patch 3) - October 2024
* Resolved [#1800](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1800) `KryptonDataGridViewComboBoxEditingControl.EditingControlFormattedValue` property is differently implemented.
* Implement [#1792](https://github.com/Krypton-Suite/Standard-Toolkit/issues/1792), Enable 'SourceLink' for NuGet packages
* Resolved [#66](https://github.com/Krypton-Suite/Standard-Toolkit/issues/66), Cannot Add Ribbon-Buttons-Container (KryptonRibbonGroupTripple) when using .netcore onwards [Returns error due to abstract class]
* Resolved [#297](https://github.com/Krypton-Suite/Standard-Toolkit/issues/297), Office 2k7 colour usages are wrong
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ public virtual DataGridView EditingControlDataGridView
public virtual object? EditingControlFormattedValue
{
get => GetEditingControlFormattedValue(DataGridViewDataErrorContexts.Formatting);
set => Text = (string)value;

set
{
// #1800 correct to the standard of the Winforms counterpart
// Text is only set if the cast is correct. null value will also be rejected.
if (value is string str)
{
Text = str;
}
}
}

/// <summary>
Expand Down

0 comments on commit f0a8fb6

Please sign in to comment.