FNCGrid FixedFooter display problem

Hi,

There is an issue with the fixed row display when the number of visible rows is reduced by reducing the height of the grid. At a certain point the texts stop appearing and at a certain moment the content of a column with an image even changes to that of another row.

The issue can be reproduced using the TMSFNCGrid demo with database (..\TMSsoftware\TMS FNC UI Pack\Demos\FMX\Grid\Database\ClientDataSet). Just add at the end of the FormCreate event:

TMSFNCGrid1.FixedFooterRow := 1;

When executing the application, the fixed footer row shows the content of the last record in the database (Chrysler, Stratus... in this case), however, when reducing the height of the window, at a certain moment, the texts of said column are no longer visible, leaving the checkbox and the image correctly visible, however, by further reducing the size, even the image changes, showing the image of the row that is being covered with said fixed row. I upload three images showing the problems.

In the case of my application, I do not use the content of the last record in the database, but rather I place there manually entered text data to the grid, however, the problem is the same, as the height of the grid is reduced, the content of the footer disappears.

TIA,
Ricardo



Hi,

Using the same demo as above and adding the following code at the end of the FormCreate event, to set the text of the FixedFooterRow by code:

  TMSFNCGrid1.FixedFooterRows := 1;
  TMSFNCGrid1.RowCount := TMSFNCGrid1.RowCount+1;
  for i := 0 to TMSFNCGrid1.Columns.Count-1 do
    TMSFNCGrid1.Cells[i, TMSFNCGrid1.RowCount-1] := 'Col '+IntToStr(i);

The problem that occurs is similar, but different. In this case, the display of the text of the FixedFooterRow fails as the height of the grid is increased, while decreasing it displays correctly.

It seems that the problem does not occur when the grid is not connected to a database.

TIA,
Ricardo

Unfortunately with an active dataset connection, FixedFooters are not supported. The rowcount needs to match the count of rows in the dataset, because the grid loads the data dynamically. We'll investigate if we can add support for this in the dataset adapter

Hi,

Using TTMSFMXFLiveGrid works without problems. I tested it with analogous code in LiveBindingsLookup demo. Perhaps the solution is in the code of that grid.

TIA,
Ricardo