Connecting Tech Pros Worldwide Help | Site Map

use splitter with datagrid on form?

  #1  
Old November 20th, 2005, 03:03 PM
B
Guest
 
Posts: n/a
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
  #2  
Old November 20th, 2005, 03:03 PM
B
Guest
 
Posts: n/a

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 Threads
Thread Thread Starter Forum Replies Last Post
using splitter Hrcko answers 2 November 17th, 2005 05:18 AM
Need some design advice bardo answers 3 November 16th, 2005 09:21 PM
Using Splitter with C# Krish answers 1 November 15th, 2005 10:54 PM
Horiz scroll error in tree view Jesper DK answers 1 November 15th, 2005 06:51 AM