10456 : Rotated text

Question

Hi,We are using GTP licensed product (GTP.NET, version is 2.0.14) in our application.
We now need the Column Text(Title) to be render on some given angle (0-270 Degrees)
Is it possible to Rotate Column Text on some angle?

Thanks

Answer

Currently there is no property in the CellLayout to control the angle of text. You will need to use a CellType.CustomCell in the header.

Implement the Grid.OnCellTypeChoose event, return e.TypeToGiveNewCell=CellType.CustomCell for header cells (Cell.Node==null for header cells)

Then implement OnCustomCellDraw and use standard GDI calls to do the drawing…

Leave a Reply