.NET control for providing a UI that allows the properties of one or more objects to be viewed and edited.
Questions tagged [propertygrid]
958 questions
4
votes
4 answers
Is there a way to detect if the user is editing a property in a property grid?
I have a Windows form (.NET 3.5) that contains a propertygrid control. The propertygrid control gets refreshed periodically do display any changes that may have occurred in the class which it represents. I want the refresh to only occur if the user…

PICyourBrain
- 9,976
- 26
- 91
- 136
4
votes
3 answers
How to display a dynamic object in property grid?
I have a custom object type which has to be editable in PropertyGrid:
public class CustomObjectType
{
public string Name { get; set; }
public List Properties {get; set;}
}
Which has a list of custom…

JBeurer
- 1,707
- 3
- 19
- 38
4
votes
1 answer
PropertyGrid collection display text
In C#, when using a PropertyGrid where an object has a Collection, what determines if the value next to the DisplayName shows the value of "(Collection)"?
Is there a specific attribute for this value?
Thanks

Simon
- 7,991
- 21
- 83
- 163
4
votes
2 answers
Is there a better StringCollection editor for use in PropertyGrids?
I'm making heavy use of PropertySheets in my application framework's configuration editor. I like them a lot because it's pretty easy to work with them (once you learn how) and make the editing bulletproof.
One of the things that I'm storing in my…

Robert Rossney
- 94,622
- 24
- 146
- 218
4
votes
5 answers
C# Winforms: PropertyGrid not updated when item added to Collection
I've got a custom class which can be edited through the PropertyGrid. In that class I've got a custom Collection (with custom PropertyDescriptor and TypeConverter).
Items can be added to or removed from the Collection with the default Collection…

MysticEarth
- 2,646
- 4
- 33
- 53
4
votes
0 answers
Wpf extended toolkit propertygrid choose editor for all objects of type
Right now, I've been specifying what editor the property grid should use by adding attributes to the properties like so:
[DisplayName("Background")]
[Editor(typeof(ColorEditor), typeof(ColorEditor))]
public Color Color { get; set; }
I don't like…

phil
- 1,416
- 2
- 13
- 22
4
votes
2 answers
Propertygrid with multiple nested classes
I've been playing around with PropertyGrids, linking them to classes and am trying to figure out how (if possible) I can display a class, with sub classes inside the PropertyGrid in a flat structure (as if they were all in one class)
I have a couple…

user3295596
- 109
- 2
- 8
4
votes
3 answers
Accessing additional context data in EditValue of UITypeEditor
I'm tweaking a WinForms application. This application has a Form that contains a PropertyGrid. An object is assigned to the SelectedObject property so that the property grid displays the properties for the object.
The type of the object assigned…

AnthonyWJones
- 187,081
- 35
- 232
- 306
4
votes
1 answer
PropertyGrid selection bug when properties have identical DisplayName?
I have a PropertyGrid whose selected object contains multiple properties with [DisplayName]s of "Speed", all in different categories (the real property names in the code are of course all unique). I've noticed that if I have (for example) Speed #3…

dlf
- 9,045
- 4
- 32
- 58
4
votes
4 answers
How do you programmatically adjust the horizontal divider of a PropertyGrid control?
I am using a .NET PropertyGrid control in my C# project.
When the form containing the grid loads, the horizontal splitter (which divides the Settings from the Description) is at a default position. How do I change the position of that splitter…

PICyourBrain
- 9,976
- 26
- 91
- 136
4
votes
2 answers
Wpf PropertyGrid Min/Max attrs
I am using PropertyGrid from WPF Extended toolkit for a lot types of objects. Objects are wrapps for configs. Many properties are integers and I want to define minimum/maximum range of concrete property in the class definition.
Something like this:
…

Frk
- 173
- 2
- 11
4
votes
0 answers
Additional data in UITypeEditor EditValue
I have some problems accessing contextual data in a custom UITypeEditor. I'm using a PropertyGrid to display some settings using Windows Forms. The SelectedObject of the PropertyGrid contains a List. Type A has a property for which I have created…

Sebastian Ärleryd
- 1,774
- 14
- 19
4
votes
4 answers
Create a dropdown list of valid property values for a custom control
I've created a custom user control that has several properties. One specifies which database I want the control to access. I want to be able to present the user of the control a drop down from which he can select which database the control will…

Marshall
- 648
- 1
- 8
- 16
4
votes
1 answer
How to set DefaultValueAttribute of the PropertyGrid dynamically or at runtime?
I am defining a custom class to be used with the PropertyGrid control. Say, one of the properties is defined as such:
[CategoryAttribute("Section Name"),
DefaultValueAttribute("Default value"),
DescriptionAttribute("My property description")]
public…

c00000fd
- 20,994
- 29
- 177
- 400
4
votes
1 answer
Creating a WPF property grid?
Where would I start looking if I wanted to create my own property grid control in WPF?

djcouchycouch
- 12,724
- 13
- 69
- 108