.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
7
votes
1 answer
Looking for code to render a form that displays a view of an object
I've got the task of displaying a web form to represent the properties in a .NET class. In WinForms, there's a pre-fab control named PropertyGrid that is a lot like what I need. I'm just looking for something to display a simple layout of property…

Chris Farmer
- 24,974
- 34
- 121
- 164
7
votes
2 answers
How remove description area from property grid?
Winforms has a control titled PropertyGrid. A display element of the PropertyGrid is a description area. By default it displays the name of the selected property. Using attributes, a programmer can have it display other text.
I would like to remove…

sapbucket
- 6,795
- 15
- 57
- 94
7
votes
5 answers
How to change the border color (or remove the border) of a PropertyGrid control?
Having a standard WinForms 2.0 PropertyGrid control I'm looking for a way to either change the border color of the control or remove the border altogether.
I'm aware of the LineColor property which unfortunately only changes the inner borders…

Uwe Keim
- 39,551
- 56
- 175
- 291
6
votes
4 answers
Resetting properties from a property grid
I am using a PropertyGrid to show properties from my objects. However, I'm also allowing the user to create their own properties, and set values for these custom properties. Each object that can have these custom properties has a Dictionary…

Eric Anastas
- 21,675
- 38
- 142
- 236
6
votes
1 answer
WinForms Property Grid won't allow me to change struct value
Not quite sure why this is happening, but I want to be able to modify the XNA color value:
private Color _color =…

LunchMarble
- 5,079
- 9
- 64
- 94
6
votes
3 answers
Property set isn't being triggered with a UITypeEditor implemented
I have a property grid that when a button is clicked for one of the properties, certain fields are filled in. However the property's set isn't being triggered. I do not know why.
private OptoSigmaSettings dataToGet = new OptoSigmaSettings();
…

Sean P
- 949
- 4
- 22
- 41
6
votes
3 answers
Remove GenerateMember and Modifiers Properties in Designer
I created a Button descendant where I hide all the properties I don't use.
I do it like…

Thomas
- 677
- 1
- 5
- 19
6
votes
3 answers
Can PropertyGrid edit any old list of key-value pairs?
All PropertyGrid examples I have seen allow the user to edit a single object, which PropertyGrid scans by reflection. I would like the user to be able to edit, for example, an ini file or a plain-old Dictionary, with one line per key-value pair. Is…

Qwertie
- 16,354
- 20
- 105
- 148
6
votes
2 answers
How can I use Blend or VS Designer to Edit Default Style Template for WPF PropertyGrid
I am using the Extended WPF Toolkit Community Edition v2.6 from NuGet in my project, but I don't know if there is something more I should be doing to allow me to theme or customize a control template.
After asking Designer/Blend to create a Copy of…

Jason Stevenson
- 4,004
- 3
- 29
- 49
6
votes
3 answers
Changing Browsable Attribute at Runtime (C#)
I'm trying to change the Browsable attribute of a variable in one of my classes at runtime. The class containing the attribute looks like this:
public class DisplayWallType : WallType
{
[TypeConverter(typeof(SheathingOptionsConverter))]
…

Nick Gilbert
- 4,159
- 8
- 43
- 90
6
votes
1 answer
Can we change the text/background color of an individual property in PropertyGrid
I have a .NET PropertyGrid control which displays properties of some class. I want to change the color or font or background color(it doesn't matter just that they look different from the other displayed properties) of some property. I can do with…

Charvak
- 289
- 2
- 13
6
votes
2 answers
How to change the font size in the Properties window in Visual Studio IDE
We can change font for VS IDE items in the Options\Environments\Fonts and Colors dialog. However, I still cannot find how to do that for the Properties pane. Can anybody help me with that?
Working mainly with VS 2013 Professional or Community…

TecMan
- 2,743
- 2
- 30
- 64
6
votes
1 answer
How to set selected item of property grid
I need to set the selected item of my property grid. I'm getting an eventargs, which stores a string (this string tells me what property in my propertygrid the user wants to select).
The problem is i cannot find a collection of grid items, i can…

user3596113
- 868
- 14
- 32
6
votes
1 answer
Property grid item and DoubleClick
I'm using PropertyGrid control for editing some objects in my application. I'm using custom TypeConverters and TypeEditors for better user interface.
I have problem with custom TypeConverter for boolean properties. If I have this class:
public class…

TcKs
- 25,849
- 11
- 66
- 104
6
votes
3 answers
Attribute with action/condition
Is it possible to specify achieve following:
[SomeAttribute(condition1)]
public SomeType SomeSetting1 {get; set;}
[SomeAttribute(condition2)]
public SomeType SomeSetting2 {get; set;}
where condition is something complicated? To…

Sinatr
- 20,892
- 15
- 90
- 319