How to check if a memo text is fully visible in a cell

Posted by: yzou on 9 January 2019, 3:57 pm EST

    • Post Options:
    • Link

    Posted 9 January 2019, 3:57 pm EST

    I am using “C1.Win.C1TrueDBGrid” in a program. The program uses ask if it is possible to turn a cell in red color when the text of memo field is not fully visible. Is there a way to check if the entire text in a memo field is fully visible?

    Thanks

  • Posted 10 January 2019, 1:59 am EST

    Hello,

    There is no direct method in C1TrueDBGrid for this. You need to use “TextRenderer.MeasureText” to measure the text of size and compare it with the width of the column of C1TrueDDBGrid. I have created the demo sample for you. Please refers to it.

    Thanks.

    WindowsFormsApp15.zip

  • Posted 11 January 2019, 3:42 pm EST

    Thank you very much. I will review your code and give it a try. Have a nice day!

Need extra support?

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

Learn More

Forum Channels