468,512 Members | 1,429 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

use splitter with datagrid on form?

B
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
Nov 20 '05 #1
1 2667
B
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
-----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 formson the right side. So far, I have placed a splitter on
the form, dragged it to the right just wide enough to dropa 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. Howcould I accomplish this? Are there properties I could setin the property sheet of the splitter or the datagrid or
do I have to initialize something in the form load event?

Thanks,
B
.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Bob (remove 'excise-' to reply) | last post: by
7 posts views Thread by John | last post: by
1 post views Thread by Krish | last post: by
2 posts views Thread by Hrcko | last post: by
2 posts views Thread by Mika M | last post: by
5 posts views Thread by Sam | last post: by
1 post views Thread by JDeats | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.