Tag: PropertyGrid
How to edit a List<string> in PropertyGrid
![](/wp-content/uploads/2018/06/CustomStringCollectionEditor-200x150.png)
When you define a property of List<string> type for a control, if you try to edit the property in PropertyGrid, a collection editor form will open and if you click on add button on the editor form, you…
Read More »Make a Property Read-Only in PropertyGrid
![](/wp-content/uploads/2018/01/propertygrid-thumbnail-200x150.png)
Sometimes you want to make a property read-only in PropertyGrid based on some criteria at run-time. For example, let’s suppose you have a SampleClass containing two properties, Editable and StringProperty and you want to make StringProperty read-only if…
Read More »