Cannot display messages in Japanese on TrueDBGrid v8.0.20251.709

Posted by: hanthuong847742 on 6 August 2025, 5:31 am EST

  • Posted 6 August 2025, 5:31 am EST - Updated 6 August 2025, 5:36 am EST

    I am migrating a C# WinForms application using TrueDBGrid v4.0.20183.338 (on .NET Framework 4.8) to TrueDBGrid v8.0.20251.709 (on .NET 8.0).

    In TrueDBGrid v4.0.20183.338, errors are displayed in Japanese.

    However, in TrueDBGrid v8.0.20251.709, errors are only shown in English.

    I have tried using [grid.Language = C1.Win.TrueDBGrid.Util.Localization.Language.Japanese] or [System.Threading.Thread.CurrentThread.CurrentUICulture] as suggested, but neither worked.

    Current machine configuration:

    Windows 11 JP

    Display and input language are both Japanese

    These are all system exception messages, and I want them to be displayed in Japanese. Can you give me some suggestions to fix this? Thanks.

  • Posted 7 August 2025, 5:59 am EST

    Hi,

    In C1TrueDBGrid, whenever an internal error related to parsing or formatting occurs, the grid directly returns the error message thrown by the .NET Runtime. The grid does not write these messages manually, but simply returns them as is.

    By default, .NET Framework projects using C# throw exception messages that are localized based on the machine’s current UI culture settings, rather than universal English strings. However, in .NET 8, built-in exception messages are only available in English by default, even when running on non-English systems like Japanese Windows.

    This is the reason you are observing this change. Since this behavior is not specific to C1TrueDBGrid, you cannot change the text of the internal MessageBox directly. However, as a workaround, you can disable the built-in MessageBox and display your own MessageBox instead, using the Error event of the C1TrueDBGrid. Please see the attached sample project for reference.

    Attachment: TdbgLocalizationTest.zip

    Best Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels