Print Page | Close Window

Werid behaviour of grid

Printed From: TMS Software
Category: FNC Components
Forum Name: FNC UI Pack
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=14059
Printed Date: 12 Dec 2019 at 1:22am


Topic: Werid behaviour of grid
Posted By: Maierhofer Bernd
Subject: Werid behaviour of grid
Date 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?







Replies:
Posted By: Maierhofer Bernd
Date Posted: 15 Oct 2019 at 9:03pm
Sorry, wrong screenshot




Posted By: Maierhofer Bernd
Date 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.


Posted By: Pieter Scheldeman
Date 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.



Print Page | Close Window