public ToolStripOptionsToolbarSection(ListControl listControl) : base(listControl) { _listControl = listControl; _toolStrip = new ToolStrip(); _toolStrip.AutoSize = true; _toolStrip.Visible = false; _toolStrip.Anchor = AnchorStyles.None; _toolStrip.Dock = DockStyle.None; _toolStrip.GripStyle = ToolStripGripStyle.Hidden; _toolStrip.TabIndex = 0; _toolStrip.Text = "List options"; _toolStrip.CanOverflow = true; _toolStrip.Renderer = new MyRenderer(); _toolStrip.BackColor = Color.Transparent; _toolStrip.Layout += _toolStrip_Layout; AddDefaultToolStripButtons(); _toolStrip.CreateControl(); listControl.Controls.Add(_toolStrip); listControl.Columns.GroupedItems.DataChanged += GroupedItems_DataChanged; HandleEnablingGroupButtons(); }