Add Custom Properties in PropertyGrid
KetticPropertyGrid control for Windows Forms application allows the users easily process properties of data objects. This .NET component contains automatic generation and intuitive custom editors for the users to display and customize the data for their Windows Forms application. The users of the KetticPropertyGrid control can set and customize the property editors using C# code and perform the scrolling operations through touch interface. This article will demonstrate how to add custom properties by using the KetticPropertyStore.
Use the KetticPropertyStore in C#.NET
Before we are going to add custom properties, we shall start the KetticPropertyStore first as the steps below.
Customize PropertyStoreItems in KetticPropertyGrid in C#.NET
After we applied the KetticPropertyStore, we can edit the PropertyStoreItems as requirements to create custom properties as below,
The C# code below shows how to add, remove and edit the PropertyStoreItems.
Additionally, in order to store the value in the PropertyStoreItems, we need to provide a value of the same type as the PropertyStoreItem or a value that can be converted via the TypeConverter of the property type. | ![]() 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 |