We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Prgrammatically docking panels

Thread ID:





75964 Aug 18,2008 09:25 AM Aug 20,2008 12:08 AM Windows Forms 3
Tags: GridControl
Andy Chan
Asked On August 18, 2008 09:25 AM


I am using Syncfusion and I'm wordering if there is a way to programmatically dock 2 panels to the left-hand side of the form I'm in. I'd like to avoid using auto-generated code where possible. I've attached a picture of what it "should" look like. Thanks for your help!


Administrator [Syncfusion]
Replied On August 19, 2008 07:22 AM

Hi Andy,

Thank you for your interest in Syncfusion Products.

Docked control can be docked to any of the four sides of the container control. i.e., to Left, Right, Top and Bottom. DockingManager lets you specify the type of docking and the bounds of the docked control using the DockControl method.

Please refer the below code.

this.dockingManager1.DockControl(this.panel1, this, Syncfusion.Windows.Forms.Tools.DockingStyle.Left,100);
this.dockingManager1.DockControl(this.panel2, panel1 , Syncfusion.Windows.Forms.Tools.DockingStyle.Bottom,200);

Please refer the tutorial link for more detail.

Please refer the simple sample for your reference.

Please let me know if any concerns.


Andy Chan
Replied On August 19, 2008 11:32 AM

Thank you very much, this is exactly what I was looking for!

Administrator [Syncfusion]
Replied On August 20, 2008 12:08 AM

Hi Andy,

Thank you for the update.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.