Jump to content


Photo

Custom Grid Lines.


  • Please log in to reply
1 reply to this topic

#1 Speed

Speed
  • Members
  • 190 posts
  • Gender:Male

Posted 06 May 2021 - 04:43 AM

Hi Boki,

 

I'm using a TNextGrid6 as a monthly calendar.  I would like to hide some grid lines, as highlighted in yellow in the attached image.

 

Attached File  Grid Lines.jpg   74.04KB   1 downloads

 

 

I think the best way to do this is to set Grid.ActiveView.GridLines to False and then draw the lines in an event.  My question is, which event should I use?

 

Thanks

 

= Steve

 



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 07 May 2021 - 12:19 PM

Hi Steve,

 

Not sure if this event may help you. The event is linked to a View instead of the grid.

 

uses NxTypes6;
...
procedure TAnchorsDialog.NxReportGridView61GetCellGrid(Sender: TObject; ACol,
  ARow: Integer; var Edges: TNxBorderEdges; State: TNxCellPaintingState);
begin
  Edges[beLeft].Color := clRed; // you can change top, left, right or bottom too.
  Edges[beLeft].Style := psSolid;
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.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users