Page 1 of 1

CRDBGrid - multi line caption

Posted: Wed 25 Feb 2009 00:59
by Edison Garcia
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

Posted: Thu 26 Feb 2009 12:20
by Dimon
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.

Posted: Fri 27 Feb 2009 02:37
by Edison Garcia
Dear Dimon

Thank you. It works perfectly.

Edison