.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
8
votes
1 answer
Is there a way for hiding some enum values for specific property of class?
I have enum lets say for example:
public enum Color
{
red,
green,
blue
}
And have two classes. which have property of enum.
public class ClassA
{
public Color Color{get;set;}
}
public class ClassB
{
[InvisibleFlag(Color.red)] // I…
user12426602
8
votes
1 answer
Is there a Property Dialog control that i can use in my WPF App?
I'm building an application using WPF that will be a designer of sorts, meaning, a user can drag and drop custom UI elements into a canvas and be able to configure their behavior via properties.
(Think of this like a domain specific PowerPoint. You…

David A.
- 439
- 5
- 18
8
votes
3 answers
display int value from enum
I have a propertygrid which I need to create a combobox inside the propertygrid and display int value (1 to 9), I found using enum is the easiest way, but enum couldn't display int value, even I try to cast it to int, but I do not know how to return…

Mers Tho
- 149
- 1
- 9
8
votes
3 answers
PropertyGrid alternatives
I love PropertyGrid, well, at least the concept behind it - use reflection and attributes to edit your objects without writing much UI code.
My excitement died out pretty quickly though, the default PropertyGrid shipping with WinForms flat-out…

JBeurer
- 1,707
- 3
- 19
- 38
8
votes
2 answers
Updating a PropertyGrid
How can I have a property grid update automatically when the object in its SelectedObject property changes? I've tried implementing INotifyPropertyChanged in my class but the property grid does not actually show the new propertyies of the object in…

Eric Anastas
- 21,675
- 38
- 142
- 236
8
votes
7 answers
Dynamically set readonly attribute of properties in a PropertyGrid
I have a PropertyGrid that I used to display the properties in a helper class. I assign the helper class to the PropertyGrid like this:
myPropertyGrid.SelectedObject = mySettingsHelper;
In the helper class I assign the ReadOnlyAttribute at design…

Michael Mankus
- 4,628
- 9
- 37
- 63
8
votes
4 answers
C# .Net 4.5 PropertyGrid: how to hide Properties
The problem is simple(and I hope that this have a simple solution!): I want to hide ( Browsable(false) ) the property "Element" (in my PropertyGrid object) when it's zero.
public class Question
{
...
public int Element
{
…

Nicola Russo
- 133
- 1
- 2
- 9
8
votes
1 answer
How can I update propertygrid item values when another item changed in winform c#?
I have a property grid with 2 items. Country & Cities. I have 1 table in database : CountryCityTable that save LocationId, Title , ParentId. For countries parentId = 0 and for cities is countryid.
In my propertygrid, I use these and show in 2…

Ali Ahmadi
- 2,387
- 4
- 31
- 48
8
votes
3 answers
Dynamic PropertyGrid properties
So for this project I'm working on, we've decided to use the .NET PropertyGrid control. The propertygrid gets populated with an object that is built during run time, based off of what item is selected by the user in a ListView control.
So, if they…

sab669
- 3,984
- 8
- 38
- 75
7
votes
2 answers
PropertyGrid: Hide base class properties, how?
PropertyGrid... for users Id like to leave only several of them. But now I see all, and users would be confused when see something like Dock or Cursor and such...
Hope it's clear for now...
user834850
7
votes
2 answers
Hide some properties in PropertyGrid at run-time
I am doing a project that allows user to customized the properties of a Control. I have a form that has a control like Label, TextBox, Button and PropertyGrid control. When the user clicks on the Label i am showing the properties of the Label in the…

Zhyke
- 427
- 7
- 22
7
votes
1 answer
Custom TypeConverter with variable StandardValues
I have a datagridview with info about competitors. I display each copmetitor's properties in PropertyGrid. I want some of those properties (e.g. Degree, City, Institute) to be dropboxes with values taken from database. For this purpose i can create…

Sasha Grinevich
- 271
- 4
- 13
7
votes
3 answers
QtPropertyBrowser and value changed signals
I'm using the Qt Property Browser library as a record editor. When the user has completed their edits of any given field, by removing focus from the edit item or pressing the enter key, I want to be informed of that so that I can take the change,…

Edward Strange
- 40,307
- 7
- 73
- 125
7
votes
3 answers
Windows 10 Creators Update changes the style of PropertyGrid control
I just upgraded some systems to Windows 10 Creators Update and I noticed that the windows forms PropertyGrid control changed its default visual style for headers and bar margins to dark gray, like so:
And as mostly happens with unexpected visual…

glopes
- 4,038
- 3
- 26
- 29
7
votes
4 answers
Expand C# propertygrid on show
i have a question about property grid.
when the form is shown i would like a group to be expand rather then collapsed.
i have search a lot for that on the web and could not find it yet.
any thoughts.

guy
- 183
- 2
- 3
- 11