Questions tagged [propertygrid]

.NET control for providing a UI that allows the properties of one or more objects to be viewed and edited.

958 questions
5
votes
2 answers

Passing objects to a UITypeEditor

I am currently hoping to use a PropertyGrid to allow users to edit some of my classes, however I've hit a wall with passing objects to the UITypeEditor(s) they use. When the user presses the drop down I want to show a listbox of already loaded…
Kath
  • 182
  • 2
  • 6
4
votes
1 answer

Add tooltip for PropertyGrid

I want to add a tool tip for items in a Property Grid. When the user hovers over a property I want the tooltip to display a hint about the usage of that property. The hint string should be different for each different value of the property — for…
Minh Vu
  • 211
  • 1
  • 3
  • 10
4
votes
1 answer

PropertyGrid: Trouble with ExpandableObjectConverter

I have created a class to display in a PropertyGrid which contains another class; I would like this class to be expandable so I tried adding the [TypeConverter(typeof(ExpandableObjectConverter))] but it doesn't seem to work. Here is a simple example…
john
  • 4,043
  • 7
  • 27
  • 39
4
votes
1 answer

.NET PropertyGrid: Varying Read/Write rights for a complex object using ExpandableObjectConverter

I'm trying to edit complex objects in a PropertyGrid control. I add the ExpandableObjectConverter (or my own subclass when I need it) as the TypeConverter and it works fine. The one thing I can't seem to figure out is this. The object itself will…
4
votes
1 answer

PropertyGrid is not displayed properly with .NET 5

I have a winform project compiled to .NET 4.7.2. It has a PropertyGrid element on the main form and it is displayed well. After migrating to .NET 5, it does not look as expected: Some text appears on top of the control and to view the value of any…
alexrait
  • 407
  • 3
  • 15
4
votes
2 answers

Displaying a Collection in a PropertyGrid Control

I have an array of objects containing pairs of string labels and values, how would I put them all in a single property grid? public class stringVariable { public String name; public String defaultValue; public String…
Tom J Nowell
  • 9,588
  • 17
  • 63
  • 91
4
votes
2 answers

extjs 3 - add progressbar and image in property grid

Is it possible to implement progressbar in property grid in extjs 3? How do I add an image in property grid? I have a value in percentage and I want to represent that in progressbar (its uneditable). Thanks a lot for help.
user427969
  • 3,836
  • 6
  • 50
  • 75
4
votes
1 answer

.Net PropertyGrid DropDownList - return value different from show value

I want to be able to show in a propertygrid a dropdownlist that show some "string" value but return an "int" value. For example, let set I got this class : public class MyObjectOptions : StringConverter { public override bool…
Melursus
  • 10,328
  • 19
  • 69
  • 103
4
votes
1 answer

Event Subscriber Cloning

I would like to know how it is best done to clone an object and reattach the event subscribers to the newly cloned object. Background: I use a Converter, which can convert from a string to an object. The object is known in the context of the…
Gregor Favre
  • 155
  • 1
  • 10
4
votes
1 answer

Xceed PropertyGrid AdvancedOptionsMenu context menu example

I'm trying to get a "Copy" context menu to display when clicking on the advanced options icon of any property. What do I need to add to make it work?
jchristof
  • 2,794
  • 7
  • 32
  • 47
4
votes
2 answers

How do I add a group in property grid without using category?

i need to group the properties in property grid with out using category
subbiah
  • 115
  • 2
  • 10
4
votes
1 answer

How can I expand a ExpandableObjectConverter object in a PropertyGrid automatically?

I have a .net PropertyGrid. I select an object to view, and a property of that object is a Vector3. I can use ExpandableObjectConverter to automatically expose the properties of the Vector3 into in the PropertyGrid. All fine, except that when the…
Nick
  • 27,566
  • 12
  • 60
  • 72
4
votes
2 answers

How to Force use of Custom UITypeEditor for System Types

I have a custom UITypeEditor that is in use for Colour Selection with my program using the propertygrid, but I can't seem to get it to activate if I just expose system.drawing.color. I need to wrap the Color with a CustomType before it will invoke…
Paul Farry
  • 4,730
  • 2
  • 35
  • 61
4
votes
3 answers

An alternative to PropertyGrid? Please hear me out

I know this is a wide topic, but please hear me out. I have a few instances where I need to edit a set of related properties. Some are free text, another might be an integer or password, and many more have predefined options (a selectbox). I…
Ryan
  • 121
  • 3
4
votes
2 answers

Set Value of Property When Delete Key is Pressed in PropertyGrid

I am currently working on a project that hosts WinForms designer. I am using PropertyGrid to display manipulate properties of the controls that are dropped on the DesignSurface. I have created UITypeEditor's to modify values of my custom controls…
Zuhaib
  • 1,420
  • 3
  • 18
  • 34