Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Werid behaviour of grid

 Post Reply Post Reply
Author
Maierhofer Bernd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 Oct 2015
Posts: 108
Post Options Post Options   Quote Maierhofer Bernd Quote  Post ReplyReply Direct Link To This Post Topic: Werid behaviour of grid
    Posted: 15 Oct 2019 at 9:00pm
I have a grid that is Bound to a database Adapter. When the attached list has more rows than fit in the grid (scrollbar is visible) the footer is displayed correct, however the last data row is missing.



When I resize the grid, so that no scrollbar is visible, the footer shows the missing row.

Additionally, when there is only one row to be displayed, the footer disappears and the second row is grayed.

What?s going on here?




Back to Top
Maierhofer Bernd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 Oct 2015
Posts: 108
Post Options Post Options   Quote Maierhofer Bernd Quote  Post ReplyReply Direct Link To This Post Posted: 15 Oct 2019 at 9:03pm
Sorry, wrong screenshot


Back to Top
Maierhofer Bernd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 Oct 2015
Posts: 108
Post Options Post Options   Quote Maierhofer Bernd Quote  Post ReplyReply Direct Link To This Post Posted: 15 Oct 2019 at 9:12pm
This is the culprit:

 grdXLSZuordnung.FixedFooterRows := 1;
  grdXLSZuordnung.ColumnCalculation[1] := ccCount;

Without these lines, the grid behaves ok.
Back to Top
Pieter Scheldeman View Drop Down
TMS Support
TMS Support
Avatar

Joined: 18 May 2010
Posts: 3362
Post Options Post Options   Quote Pieter Scheldeman Quote  Post ReplyReply Direct Link To This Post Posted: 16 Oct 2019 at 10:20am
Hi,

Grouping, filtering, sorting and all other grid operations that manipulate or use data are not supported while having an active database connection. To solve this, you need to use LoadAllDataAndDisconnect call on grid level and then afterwards apply grouping.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down