Jump to content

How to add a border to a grid?


Recommended Posts

Hi all,

 

how can I add a border to a grid, especially to the cells of the grid?

 

This coding does work only for the grid itself, not for the cells:

 

  MyGrid := TW3Grid.Create(Self);
  MyGrid.Border.SetStyle(TW3BorderEdgeStyle.besSolid);
  MyGrid.Border.Left.Width:=1;
  MyGrid.Border.Top.Width:=1;
  MyGrid.Border.Right.Width:=1;
  MyGrid.Border.Bottom.Width:=1;
  MyGrid.Visible := True;
 
The cells itself seem not to have a border property.
 
Thanks in advance
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...