.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
0
votes
2 answers
Access the project file structure within the Visual Studio Properties property grid?
I'm making a Component that will be used in a VS drag and drop designer. One of the properties on this component needs to be the pack URI of a file within the project.
I'd like to make things a little easy and, from within the property editor the…
user1228
0
votes
1 answer
Property Grid:Dispay a property value only if it is not null
I am using property grid (System.Windows.Forms.PropertyGrid) in one of the UI to display the properties of a class.
At times there is a possibility that some of the property of the object I want to display is a null value.
So here I see a row for…

MithunRaj
- 103
- 4
- 12
-1
votes
1 answer
What is an appropriate MVC-based OOP design for my case?
Suppose the following baseline design: I have a class CarElement which holds properties and methods related to both visual representation and data model/logic representation of a car:
class carElement
{
// UI related properties and methods:
…

SenZe
- 3
- 2
-1
votes
1 answer
C# PropertyGrid UITypeEditor Agnostic to the object and property
In the last couple of weeks I've been learning PropertyGrid. I need to display the properties of a series of objects of various classes, but they are all derived from class Ctrl. For instance, there…

Mark Roworth
- 409
- 2
- 15
-1
votes
1 answer
How to remove properties that don't have a setter from properygrid c#
I am making an app in Winforms where the user selects an object from a list (all of which are different classes) then edit its properties. Some of the objects have properties greyed out because they don't have a setter. Is there a way to…

mcp613
- 15
- 7
-1
votes
1 answer
TypeConverter reuse in PropertyGrid .NET winforms
I would like to ask if it's possible to reuse the same TypeConverter when implementing a custom drop down list in a PropertyGrid, but with different items. Consider the following TypeConverter to implement a 2 item (dog/cat) drop down list in a…

dsula
- 185
- 1
- 2
- 8
-1
votes
1 answer
The control property changes the immediate application (DesignSurface)
I have created DesignSurface. However, if I change the properties of the control, for example, the Size property.
I stretched Form, so the Size attribute of PropertyGrid should also be changed in time. But I've been looking at Google and MSDN for a…

徐思龙
- 1
-1
votes
1 answer
How can I hide the property of PropertyGid in XML?
below is my XML generated by using XMLSerializer and there are propertygrid's properties. What I wish to do is to edit the contents in XML file so that the property can be hidden, instead of change the code using [browsable(false)]. For example,…

Mers Tho
- 149
- 1
- 9
-1
votes
1 answer
.NET Using a Struct within a PropertyGrid
In my application I am using a PropertyGrid for setting attributes related to loading data, setting the scene, etc. I have a small issue though, when it comes to using a Vector3 as a property. It turns out that if I try to use an OpenTK Vector3…

Krythic
- 4,184
- 5
- 26
- 67
-1
votes
1 answer
Property Grid Custom Search Box
I have a PropertyGrid with a lot of nested items. How can I make a searchbox to filter and display only the items matching the search string?

Gautham
- 19
- 2
-1
votes
1 answer
Hide properties of an Image in PropertyGrid
I have an image that I want to display based on specific choices the user makes. This image shows up as a property in the PropertyGrid. Like this:
The problem is that I am getting all this extraneous information, including the label to the right of…

Fam
- 580
- 1
- 7
- 29
-2
votes
1 answer
Why do DbConnectionStringBuilder descendants break Property Grid binding so thoroughly?
I'm trying to set up a way to configure a database connection. I found a simple property grid on GitHub, added it to my project, and bound a DbConnectionStringBuilder descendant to it, and it immediately broke. It found the names and types of all…

Mason Wheeler
- 82,511
- 50
- 270
- 477
-2
votes
1 answer
What is required for a class so that a property grid shows its properties?
Language: C# .Net Framework 4.6.1
Operating System: Window 7 Home 64 bit
Can someone tell me what is required of a class for a property grid to display it's properties?
I tried just inheriting and implementing ICustomTypeDescriptor but nothing is…

Shadowblitz16
- 137
- 2
- 11