XYOffset for footer row only

Is there any way to change the XYOffset on just the floating footer? I'm using smaller font there and need it to start at the top of the box. It seems that the footer has a buffer at the top (caused by the html code?) so even when I set XYOffset to (0,0), the rest of the cells go to the top and the footer gets closer but never reaches the top.



Here's my footer line (for the fixed column):

<FONT size="8" face="Arial" >Upper:<BR>Target:<BR>Lower:</FONT>



Thanks,

Mike

You can change the X,Y offset dynamically for each cell via the OnGetCellColor event and call from there grid.UpdateXYOffset.

Example to set an XY offset different from the floating footer configured to display the last row of the grid:


procedure TForm1.AdvStringGrid1GetCellColor(Sender: TObject; ARow,
  ACol: Integer; AState: TGridDrawState; ABrush: TBrush; AFont: TFont);
begin
  if arow = advstringgrid1.RowCount - 1 then
    advstringgrid1.UpdateXYOffset(0,-2)
  else
    advstringgrid1.UpdateXYOffset(2,2);
end;