Is it possible to center DataGrid.CaptionText?
Am I missing something? I know that I could just put a label control over that part of the grid, but i was wondering if there is another property I can use
Thanks,
Am I missing something? I know that I could just put a label control over that part of the grid, but i was wondering if there is another property I can use
Thanks,
You could try a quick fix:
Create a new DataGrid derived from the standard DataGrid control and override the onPaint (or onPaintBackground) method (not sure which one is used for the CaptionText). In that control, after all the base painting occurs, paint over the Caption Text (using FIllRectangle), and then Redraw the Caption Text in the appropriate "centered" position.