Jump to content


Photo

Gridview.OnGetCellGrid - when will it be triggered?


  • Please log in to reply
1 reply to this topic

#1 Frank

Frank
  • Members
  • 30 posts

Posted 28 March 2023 - 02:37 PM

Hello,

 

i try to give some rows in my grid a bottom line to separate groups of data.

 

In this Post http://www.bergsoft....dges#entry21056 you mentioned the OnGetCellGrid-Event.

 

But i cannot find out how to trigger it.

 

 

 

Or, as question: What must i do trigger the event?

 

Can you please point me in the right direction?

 

 

Best regards

Frank



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 March 2023 - 05:35 PM

Hello Frank,

 

Please make sure that the grid is actually showing (right click chose Show Grid).

 

Then you can write something like this:

 

procedure TForm2.NxReportGridView62GetCellGrid(Sender: TObject; ACol, ARow: Integer; var Edges: TNxBorderEdges;
  State: TNxCellPaintingState);
begin
  if ARow = 3 then Edges[beBottom].Color := clRed;
  if ACol = 4 then Edges[beRight].Color := clBlue;
end;

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users