How to add custom panels to AdvPropertyGrid
Categories: DotNetBar for Windows Forms, How To
Screen-shot below illustrates a custom panel added to the AdvPropertyGrid:
Adding custom panel to AdvPropertyGrid is as simple as adding panel to the Controls collection. Here is sample code that illustrates that. Panel being added is named panelEx1.
C#:
advPropertyGrid1.SelectedObject = panelEx1; panelEx1.Dock = DockStyle.Bottom; advPropertyGrid1.Controls.Add(panelEx1); panelEx1.BringToFront(); // This controls position of control with Dock property set...
VB:
advPropertyGrid1.SelectedObject = panelEx1 panelEx1.Dock = DockStyle.Bottom advPropertyGrid1.Controls.Add(panelEx1) panelEx1.BringToFront() ' This controls position of control with Dock property set...
Click here to download sample project that shows this running.
Related posts:

Leave a Reply!