$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
PropertyGrid WinForms Control
Easily process properties of data objects, automatically generate and display custom data in C#.
Home > WinForms UI Controls > User Manual > Customizing Editor Behaviour for PropertyGrid in C#

Customize PropertyGrid Editor in C#.NET

KetticPropertyGrid WinForms control provides a convenient approach for customizing the appearance and behavior of property grid editors using C# code. This control includes a variety of built-in editors used to edit different data types. All the built in editors can be replaced by custom editors. KetticPropertyGrid control is capable of embedding a number of data editors into individual cells for editing and better data presentation. The PropertyGrid 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.

PropertyGrid Editors Appearance and Behavior Customizing

This PropertyGrid control provides the EditorInitialized event for the users to customize the appearance and behavior using C# code in Windows applications. To fire the EditorInitialized event in C#.NET project, we need to create an editor and a set of properties predefined will be initialized. The C# code below demonstrates how to customize the default font of PropertyGridTextBoxEditor.

void ketticPropertyGrid1_EditorInitialized(object sender, Kettic.WinForms.UI.PropertyGridItemEditorInitializedEventArgs e)
{
PropertyGridTextBoxEditor editor = e.Editor as PropertyGridTextBoxEditor;

if (editor != null)
{
((KetticTextBoxElement)editor.EditorElement).Font = new Font(FontFamily.Families[12], 10, FontStyle.Bold);
}

}
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls