How to Dynamically add a property item to Property Grid
C#
1
Posts
1
Posters
0
Views
1
Watching
-
I am trying to add propertyitem dynamically to property grid. For example If I want to add a property Item Like a text box which takes "String name" as variable how to add dynamically to property Grid? I can do the following to add the "name" text box at static design time: public class PropertyGridProcessDesigner { [Editor(typeof(PropertyGridProcessDesigner), typeof(System.Drawing.Design.UITypeEditor))] public string Name { get { return name; } set { name= value; } } } But how to achieve the same above thing at run time ? Do we need to create dynamic classes to add Property Item ? If so, can anyone please share any information you have ? Thanks, rajan