Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 20th, 2005, 03:03 PM
B
Guest
 
Posts: n/a
Default use splitter with datagrid on form?

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
Default 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]
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.