$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 > Bind PropertyGrid to Multiple Objects in C#

PropertyGrid Databinding to Multiple Objects

KetticPropertyGrid control is able to be bound to a data item with a simple C# code snippet and set the properties as requirements. This control 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. This control is capable of creating editor controls for properties automatically. In this article, we are going to demonstrate how to bind KetticPropertyGrid to multiple objects.

PropertyGrid Data Binding to Multiple Objects

To bind the KetticPropertyGrid .NET component to multiple objects, we can follow the steps as below.
  • First, we shall set an array of objects as ChosenObjects in KetticPropertyGrid WinForms control
  • After the above step, the KetticPropertyGrid will display the properties of all the objects in the array.
  • The property displayed is a common property and will have the same name and type across all the objects.
  • The value can be displayed for the specified properties when the values of the properties in all objects match.
  • The value is set in all the objects when we set a property in the KetticPropertyGrid.
The following is a C# example that shows how to bind the KetticPropertyGrid to multiple objects

object[] objects = new object[] { this.ketticButton1, this.ketticTextBox1, this.ketticLabel1 };
this.ketticPropertyGrid1.SelectedObjects = objects;
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