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
41
votes
1 answer

How to create custom PropertyGrid editor item which opens a form?

I have a List<> (my custom class). I want to display a specific item in this list in a box on the PropertyGrid control. At the end of the box I would like the [...] button. When clicked, it would open up a form which, among other things, would allow…
esac
  • 24,099
  • 38
  • 122
  • 179
39
votes
1 answer

ICustomTypeDescriptor, TypeDescriptionProvider, TypeConverter, and UITypeEditor

I'm trying to get an overall understanding of how you use ICustomTypeDescriptor, TypeDescriptionProvider, TypeConverter, and UITypeEditor to change how a PropertyGrid displays and interfaces with an object. Can someone tell me if this is right, or…
Eric Anastas
  • 21,675
  • 38
  • 142
  • 236
35
votes
4 answers

Multi-line string in a PropertyGrid

Is there a built-in editor for a multi-line string in a PropertyGrid.
fryguybob
  • 4,390
  • 2
  • 28
  • 36
28
votes
4 answers

How to modify PropertyGrid at runtime (add/remove property and dynamic types/enums)

How do you modify a propertygrid at runtime in every way? I want to be able to add and remove properties and add "dynamic types", what I mean with that is a type that result in a runtime generated dropdown in the propertygrid using a…
salle55
  • 2,101
  • 2
  • 25
  • 27
23
votes
5 answers

How can I customize category sorting on a PropertyGrid?

How can I customize the sorting of categories in a PropertyGrid? If I set either of the following... propertyGrid.PropertySort = PropertySort.Categorized; propertyGrid.PropertySort = PropertySort.CategorizedAlphabetical; ... then the categories…
Garth Kidd
  • 7,264
  • 5
  • 35
  • 36
22
votes
3 answers

How can I use a WinForms PropertyGrid to edit a list of strings?

In my application I have a property grid to allow users to change settings. This works fine for strings and other value properties, but what I need now is a list of strings that can be edited by users. The problem is that if I have…
KallDrexx
  • 27,229
  • 33
  • 143
  • 254
21
votes
2 answers

Custom property names in PropertyGrid?

I have a class that I use in a PropertyGrid. I found that by setting CategoryAttribute on each property it creates a new category for each item, obviously. This sets my property grid to have a [+] for each item with my custom name in it, and this…
Eric Smith
  • 2,329
  • 2
  • 23
  • 30
20
votes
3 answers

Show detailed Folder Browser from a PropertyGrid

Please note it is not a duplicate question. How to show a detailed FolderBrowser as in the image below from a PropertyGrid (from the field/property which has ellipses ...) Using [EditorAttribute(typeof(System.Windows.Forms.Design.FileNameEditor),…
dushyantp
  • 4,398
  • 7
  • 37
  • 59
19
votes
3 answers

Is it possible to mark a property shown in a property grid as a password field

I'm using C# and have a windows form containing a property grid control. I have assigned the SelectedObject of the propertygrid to a settings file, which displays and lets me edit the settings. However one of the settings is a password - and I'd…
Chris B
  • 5,311
  • 11
  • 45
  • 57
19
votes
5 answers

List of PropertyGrid Attributes

I can't find any list of the available attributes for the PropertyGrid in C#, do you know where I can find one? Thanks.
Phito
  • 281
  • 1
  • 2
  • 12
17
votes
1 answer

display list of custom objects as a drop-down in the PropertiesGrid

I want to take an object, let's say this object: public class BenchmarkList { public string ListName { get; set; } public IList Benchmarks { get; set; } } and have that object display its ListName as the "name" part of the…
Michael McCarthy
  • 1,502
  • 3
  • 18
  • 45
15
votes
4 answers

Edit the display name of enumeration members in a PropertyGrid

I have a property grid that I am using for users to be able to configure objects for any plugin that is written to be used in my application. I would like to be able to tell developers writing plugins to use the ComponentModel Attributes for their…
Jonathan Henson
  • 8,076
  • 3
  • 28
  • 52
15
votes
1 answer

How to show Drop down control in Property Grid?

I am adding the Property grid control in my project. I have to show the Drop down box in one field of Property Grid. Is there any solution to apply this.
Manivijay
  • 149
  • 1
  • 1
  • 6
15
votes
2 answers

Using a Dictionary in a propertygrid

I'd like to edit a list of key value(string, string) items using a propertygrid. When I use a Dictionary as type the propertygrid will show a GUI, but it does not seem "enabled", ie. I can't add any items. Is the Dictionary object…
Robert Massa
  • 4,345
  • 1
  • 32
  • 44
14
votes
2 answers

Xceed WPF propertyGrid show item for expanded collection

How, do I display a ObservableCollection<> of custom objects in the Xceed WPF PropertyGrid in which each List Item can be expanded to display the custom objects properties. (ie: ----PropertyGrid----- CoreClass (+/-) ObservableCollection<…
VRage
  • 1,458
  • 1
  • 15
  • 27
1
2 3
63 64