FNCGrid Cell formatting with HTML

I have a column in a grid that has variable amounts of data for different rows.

I have set wordwrap := True and formatted the data as an unordered list.  A row can have from 1 to 4 items in the list.

In formatting the cell it looks as though there is a blank line at the beginning of the text, and a number of blank lines at the end.  The number at the end looks like 1 plus the number of items in the list.  This is giving quite a large blank area under the text.

How can I reduce the amount of white space ?

FNC UI Pack 2.5.1, Rio Upd1

TIA,

Sue

What is the exact purpose of the grid that you want to apply? Can you send us a screenshot of what you mean exactly with the blank area under the text? There is margin applied of 2 pixels, so the text doesn't stick to the edges of the cell. 

Here is the image of a row in the grid.



The text is set using

    FStringBuilder.Append('<ul>');
    for iIndex := 1 to 4 do
    begin
      sName := 'Interval' + iIndex.ToString;
      lBytes := rrData.GetByNameAsBytes(sName);
      if Length(lBytes) > 0 then
      begin
        lNovaMsg.Clear;
        ExtractContent(lNovaMsg, lBytes);
        if not CompareMem(@lClockInterval[0], @lNovaMsg.ClockMsg.TIntervals[0],
          32) then
        begin
          FStringBuilder.AppendFormat('<li> Interval [%d] ', [iIndex]);
          for iDayNo := 0 to 7 do
          begin
            FStringBuilder.AppendFormat(' %s ', [DofW[iDayNo]]);

            FStringBuilder.AppendFormat(' On-Off [%.2d:%.2d-%.2d:%.2d]',
              [lNovaMsg.ClockMsg.TIntervals[iIndex].OnHM[0],
              lNovaMsg.ClockMsg.TIntervals[iIndex].OnHM[1],
                lNovaMsg.ClockMsg.TIntervals[iIndex].OffHM[0],
                lNovaMsg.ClockMsg.TIntervals[iIndex].OffHM[1]]);
          end;
          FStringBuilder.Append('</li>');

        end;
      end;
    end;
    FStringBuilder.Append('</ul>');
    grdTimes.Cells[2, ARow] := FStringBuilder.ToString;

Sue

Please send us a sample to support@tmssoftware.com

Sent just now.

Sue