Forum > Databases

TdxDBGridController and OnDrawColumnTitle override on multi-line Titles

(1/1)

FrankBKK:
I found TdxDBGridController to be very useful designing DBGrids with a nice layout and good search functionality.

On a normal DBGrid without an attached grid controller and property dbGrid.Columns.Title.MultiLine := True
   dbGrid.Columns[2].Title.Caption := 'Test1' + LineEnding + 'Test2' ;
shows the Title on two lines as expected.

However when using the TdxDBGridController this is ignored.

Is there another way to get multi line titles while using TdxDBGridController ?

rnervi:
I found this component too very intersting and - from demo - sounds like powerfull.
But I cannot understand how to use a mini tutorial stepbystep "how to start in an empty project" will be usefull (or in alternative just a mini project with 1 form, 1 grid and this component linked at) !

anyone has ideas about ?

(rxdbgrid does a nice incremental search.....)

five:
You can find a demo project with one form + one grid on this link :https://gitlab.com/lazaruscomponent/dbgridcontroller/-/tree/master/demo

five:

--- Quote from: FrankBKK on March 16, 2024, 07:42:49 am ---I found TdxDBGridController to be very useful designing DBGrids with a nice layout and good search functionality.

On a normal DBGrid without an attached grid controller and property dbGrid.Columns.Title.MultiLine := True
   dbGrid.Columns[2].Title.Caption := 'Test1' + LineEnding + 'Test2' ;
shows the Title on two lines as expected.

However when using the TdxDBGridController this is ignored.

Is there another way to get multi line titles while using TdxDBGridController ?

--- End quote ---

I will add this feature on the next release. Thank you for your comment on this component. Next release bugFix + New features.

Navigation

[0] Message Index

Go to full version