MyDAC
Call CalcTitleLevel method to set Top and Bottom values of aRect parameter record depending on Level parameter value.
TCRDBGrid
procedure CalcTitleLevel(Level: integer; var aRect: TRect);