[dba-VB] Visual Studion 2008: locking grid control position

Gustav Brock Gustav at cactus.dk
Fri Aug 20 09:19:20 CDT 2010


Hi John

Not that I know of. For such purposes I use one or more containers (Panel or SplitContainer) and move the grid(s) inside this/these.

/gustav


>>> jwcolby at colbyconsulting.com 20-08-2010 16:03 >>>
It is not docked.  Here's the deal.

I have two grids on a tab on a form.  The top grid is the master, the bottom grid is a detail view 
displaying details of the top grid.  Both grids are just floating.  I discovered that I can dock the 
bottom grid to the bottom and that seems to work.  The top grid needs to be docked to the side, but 
when I do that it expands to fill the entire tab.  I don't want it to expand, it is the size I want it.

I can't doc it to the top because there are controls (on the tab) above the top grid.

Is there no property to just tell the grid control to lock the size and position that is currently is?

John W. Colby
www.ColbyConsulting.com 


Gustav Brock wrote:
> Hi John
> 
> Is your grid docked at Left and Bottom? Sounds like it is just positioned.
> 
> /gustav
> 
> 
>>>> jwcolby at colbyconsulting.com 20-08-2010 15:00 >>>
> I have a grid on a form.  I just discovered that the bottom and left sizes can be grabbed and moved 
> around.  I want it locked in place.  What am I missing?






More information about the dba-VB mailing list