PropertyGrid Toolbar in C#.NET
KetticPropertyGrid WinForms control allows the users to add a toolbar with out of the box functionality and then display the tool bar on the top of the PropertyGrid control. With the predefined functions in the toolbar, we are able to sort items, group items, as well as filter the items by entering a string into the text box. To enable the toolbar in PropertyGrid control, we need to change the value of the ToolBarVisible property to true. This article will discuss how to use the toolbar using C# code in PropertyGrid for Windows applications.
Enable Tool Bar in C# for PropertyGrid Control
To enable the toolbar in PropertyGrid control, we need to change the value of the ToolBarVisible property to true.
Customize Filtering using C# code in PropertyGrid
KetticPropertyGrid control supports the customization of the predefined filter operator and property. The C# code below demonstrates how to customize the filtering by setting the properties.
Access Toolbar Elements using C# in PropertyGrid
KetticPropertyGrid allows the users to add or change elements in tool bar using C# code. This is achieved by using the StackLayoutPanel. The C# code below demonstrates how to access toolbar elements
To add a new element to the toolbar, we should add the element to the Children collection of ToolbarElement. The C# code below shows how to add element to toolbar.
| ![]() UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlGet Started in C#Property Grid - AttributeAdd Custom PropertiesBinding to Multiple ObjectsProperty Grid - CustomizationProperty Grid - LocalizationProperty Grid - EditorsC# API & EventsValidationCustomizing Editor BehaviorHandle EventsProperty Grid - FeaturesFeatures - filteringFeatures - GroupingCustom GroupingFeatures - SortingFeatures - Help BarFeatures - Tool BarWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |