TrueDBGrid C1Datacolumn hex

Posted by: horst on 13 April 2022, 6:02 am EST

    • Post Options:
    • Link

    Posted 13 April 2022, 6:02 am EST

    I want do show in a C1Datacolumn a INT-Number in Hex-Format.

    If I set Numberformat to “X” it works like this:

    255 → “FF”

    I want to see “0xFF”

    Have anybody an idea what I have to set for Numberformat to see 0xFF?

    Thanks Horst

  • Posted 14 April 2022, 6:33 am EST

    Hi Horst,

    To show integer numbers formatted as Hexadecimal, you can set the NumberFormat property of the C1DataColumn to “FormatText Event” and handle the FormatText event of the C1TrueDBGrid to manually format the values according to your requirements. Kindly refer to the attached sample showing the same.

    Best Regards,

    Kartik

    HexFormat_TDBG.zip

  • Posted 25 May 2022, 7:35 am EST

    It works - Thank you very much!

Need extra support?

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

Learn More

Forum Channels