CRDBGrid - multi line caption

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Edison Garcia
Posts: 29
Joined: Sat 29 Jul 2006 01:52

CRDBGrid - multi line caption

Post by Edison Garcia » Wed 25 Feb 2009 00:59

I know that CRDBGrid has no support at all, but, if some one could help it would be very good.
I am trying do set a multi-line caption in runtime. If I set the leveldelimiter like '|' and set the caption like 'fieldname|value1' during design time it works perfectlhy. But Iam building a new table using a MyScript and after populate it, I set the column title caption exactly the same way, and the CRDBgrid doesn´t respond, showing the title caption like:
'firstword|secondword' in the same line. to use CRDBGrid.repaint dos nt help.
Thanks
Edison

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Thu 26 Feb 2009 12:20

To solve this problem you should use the following code:

Code: Select all

TCRColumnTitle(CRDBGrid.Columns[i].Title).Caption := 'firstword|secondword';
We will fix this problem. This fix will be included in the next MyDAC build.

Edison Garcia
Posts: 29
Joined: Sat 29 Jul 2006 01:52

Post by Edison Garcia » Fri 27 Feb 2009 02:37

Dear Dimon

Thank you. It works perfectly.

Edison

Post Reply