I have a grid, and as with all grids it has a border around it. How do
I hide or otherwise make this border invisible? With most controls,
there is a borderstyle or bordercolor property that I can use, however
a grid does not seem to have this. How do we manipulate the border
around a grid?

Re: How to disable/hide border around grid by Carsten

Carsten
Mon Jun 18 02:26:27 CDT 2007

Ook,

not very fancy, but how about putting the grid in a container. If the
container is a few pixel smaller than the grid, the border will "dissapear".

In the init-code of the container put this:

THIS.grid1.Width= THIS.Width+4
THIS.grid1.Height= THIS.Height+4
THIS.grid1.Top= -2
THIS.grid1.Left = -2

Now it will "Autofit"

--
Cheers
Carsten
_______________________________

"Ook" <zootal@gmail.com> schrieb im Newsbeitrag
news:1181942778.914924.279540@i13g2000prf.googlegroups.com...
>I have a grid, and as with all grids it has a border around it. How do
> I hide or otherwise make this border invisible? With most controls,
> there is a borderstyle or bordercolor property that I can use, however
> a grid does not seem to have this. How do we manipulate the border
> around a grid?
>



Re: How to disable/hide border around grid by Ook

Ook
Mon Jun 18 11:48:23 CDT 2007

Thanks for the suggestion. That is what we ended up doing. Crude, but
in the end looks nice and is workable. I played with putting a white
shape over the border, but when you select the grid, it brings it to
the foreground and puts it over the shape. When you leave the grid, it
leaves the grid in front of the shape. I also tried a bitmap, but it
seems that grids automatically come to the foreground when selected.

On Jun 18, 12:26 am, "Carsten Bonde" <bonde AT real-inkasso DOT de>
wrote:
> Ook,
>
> not very fancy, but how about putting the grid in a container. If the
> container is a few pixel smaller than the grid, the border will "dissapear".
>
> In the init-code of the container put this:
>
> THIS.grid1.Width= THIS.Width+4
> THIS.grid1.Height= THIS.Height+4
> THIS.grid1.Top= -2
> THIS.grid1.Left = -2
>
> Now it will "Autofit"
>
> --
> Cheers
> Carsten
> _______________________________
>
> "Ook" <zoo...@gmail.com> schrieb im Newsbeitragnews:1181942778.914924.279540@i13g2000prf.googlegroups.com...
>
> >I have a grid, and as with all grids it has a border around it. How do
> > I hide or otherwise make this border invisible? With most controls,
> > there is a borderstyle or bordercolor property that I can use, however
> > a grid does not seem to have this. How do we manipulate the border
> > around a grid?