# Child Container Header

## Content

DashboardLayout allows you to display the child container header by using <span data-popup-content="This class is available in both \u003ca href=\u0022/componentone/docs/win/online-dashboardlayout/\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/docs/win/online-dashboardlayout/\u0022\u003e.NET Framework\u003c/a\u003e assemblies." data-popup-title="SetCaption" data-popup-theme="ui-tooltip-green qtip-green">SetCaption</span> method of the [C1DashboardLayout](/componentone/docs/win/online-dashboardlayout/) class. This method sets caption for the header so as to make the header visible. The header consists of caption text, a maximize icon and tool-icon with three dots positioned vertically, which can be used to hide or drag the child container.

The following image shows a header in the child container.

![Child container header](https://cdn.mescius.io/document-site-files/images/ff3fa73b-228c-4f10-9cc6-7c137f26176a/images/childcontainerheader.png)

For setting header on a child container, use the following code:

```csharp
c1DashboardLayout1.SetCaption(c1DashboardLayout1.Items[0].ItemContainer, "FlexGrid Container Header");
```

```vbnet
c1DashboardLayout1.SetCaption(c1DashboardLayout1.Items(0).ItemContainer, "FlexGrid Container Header")
```

You can also add custom elements to the child container headers using Options.HeaderElements at design time. For more information on styling child container headers, see [Dashboard Styling](/componentone/docs/win/online-dashboardlayout/styleappearance) topic.

### Child Container Context Menu

Child containers have embedded context menu which allows hiding or maximizing a child container. At runtime you can show this context menu with a right click on the empty area in a child container or with a click on the tool-icon.

The following GIF illustrates context menu displayed on right-clicking the child container.

![Context menu](https://cdn.mescius.io/document-site-files/images/ff3fa73b-228c-4f10-9cc6-7c137f26176a/images/contextmenu.gif)

The context menu can be customized using the <span data-popup-content="This class is available in both \u003ca href=\u0022/componentone/docs/win/online-dashboardlayout/#CONTEXTMENUSTRIP\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/docs/win/online-dashboardlayout/#CONTEXTMENUSTRIP\u0022\u003e.NET Framework\u003c/a\u003e assemblies." data-popup-title="ContextMenuStrip" data-popup-theme="ui-tooltip-green qtip-green">ContextMenuStrip</span> property of the [DashboardOptions](/componentone/docs/win/online-dashboardlayout/) class. To create a custom context menu in DashboardLayout control, see [Creating Custom Context Menu](/componentone/docs/win/online-dashboardlayout/walkthroughs/creatingcustomcontextmenu) topic.

## See Also

[Creating Custom Context Menu](/componentone/docs/win/online-dashboardlayout/walkthroughs/creatingcustomcontextmenu)