Posted 7 April 2026, 11:49 pm EST - Updated 8 April 2026, 12:41 am EST
Using the latest version of the C1Label control from C1.Win.Input (version 10.0.20252.761) the handling of DBNull/null values of is incorrect when the C1Label is bound to a data item where the field value is an empty string and the C1Label NullText property is set to some null-text warning AND EmptyAsNull = false.
When the bound data value is an empty string; the C1Label in this case incorrectly displays the configured NullText instead of just displaying nothing (=the empty string).
See the attached Visual Studio 2026 solution for .NET 10 and the latest release for a clear demonstration of the issue. In this bug demo the 1st and 3rd person’s country display correctly (either with a real value or DBNull/null) - the 2nd person’s country (empty string) is processed incorrectly by the C1Label.
This behaviour would be correct if EmptyAsNull = true, but it’s set to false (default) in this demo.
Extra comment: for the standard WinForms TextBox and Label controls this behaviour is identical, but for C1Label control with ‘EmptyAsNull = false’ different behaviour would have been expected - in line with the .NET 4.8 Framework version of C1Label.
