Editor Events of PropertyGrid .NET Component
KetticPropertyGrid WinForms control allows you embed a number of data editors into individual cells for editing and better data presentation. This .NET UI component is able to control the process of editing, including the initialization, editors for validating and events value changing. There are also advanced data editing options available with the Property Grid Control. For instance, by using this control, the users can perform a specific operation based on the user input in the editor as it is opened by handling the events of the editors.
Handling Editor Events of PropertyGrid in C#.NET
In the example below, we are going to set specific text in the PropertyGrid editor. We should press Ctrl+D and then subscribe to the KeyDown event of the KetticTextBoxElement in the EditorInitialized event handler. It is because that the PropertyGrid editors are reusable, so we must define a field to prevent from subscribing to the KeyDown once again.
C# code for handling the events of PropertyGrid editors
| ![]() 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 |