Jump to content


Photo

fix to grid


  • Please log in to reply
2 replies to this topic

#1 Syrob

Syrob
  • Members
  • 13 posts

Posted 12 August 2010 - 06:07 PM

I had to make a change to the grid clearrows to make footer clearing work ok. Don't know if in the newer versions but you may want to add this line.

procedure TNextGrid.ClearRows;
begin
inherited ClearRows;
FCells.ClearRows;
FFirstRow := 0;
FFirstVisibleRow := 0;
FLastVisibleRow := 0;
RefreshArea(gaBody);
RefreshArea(gaFooter); <<<<< added this line
RefreshArea(gaIndicator);
UpdateHorzScrollBar;
UpdateVertScrollBar;
end;

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 13 August 2010 - 02:18 AM

Hello Syrob,

I have add this line, but can you please tell me when this line is needed since Footer doesn't need to be repainted.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Syrob

Syrob
  • Members
  • 13 posts

Posted 16 August 2010 - 08:20 PM

I believe I had a grid with child columns. Some of the parent columns were totaled and some of the child columns were totaled. When the content of the columns changed so that there were no child columns, the footer was not clearing.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users