Connecting Tech Pros Worldwide Help | Site Map

use splitter with datagrid on form?

B
Guest
 
Posts: n/a
#1: Nov 20 '05
Hi,

I would like to split up an mdi form using a splitter
where a datagrid would be on the left side and child forms
on the right side. So far, I have placed a splitter on
the form, dragged it to the right just wide enough to drop
a datagrid control onto it. I don't know if this is even
correct usage. I would like to be able to drag the
splitter to the right to expose more of the datagrid. How
could I accomplish this? Are there properties I could set
in the property sheet of the splitter or the datagrid or
do I have to initialize something in the form load event?

Thanks,
B
B
Guest
 
Posts: n/a
#2: Nov 20 '05

re: use splitter with datagrid on form?


Nevermind. I figured it out. Incase anyone cares, you
first put the datagrid on the form. The trick is to set
the Dock property to Left. Then you add the splitter. It
will automatically align itself to the right side of the
datagrid. Then add whatever you want to the right of
that. Dock everything accordingly. The trick is in
Docking, Dock Left, Fill, Top

B
[color=blue]
>-----Original Message-----
>Hi,
>
>I would like to split up an mdi form using a splitter
>where a datagrid would be on the left side and child[/color]
forms[color=blue]
>on the right side. So far, I have placed a splitter on
>the form, dragged it to the right just wide enough to[/color]
drop[color=blue]
>a datagrid control onto it. I don't know if this is even
>correct usage. I would like to be able to drag the
>splitter to the right to expose more of the datagrid.[/color]
How[color=blue]
>could I accomplish this? Are there properties I could[/color]
set[color=blue]
>in the property sheet of the splitter or the datagrid or
>do I have to initialize something in the form load event?
>
>Thanks,
>B
>.
>[/color]
Closed Thread


Similar Visual Basic .NET bytes