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

change property to combobox in propertygrid

I have this code from internet source, I thought this code might be working well for changing the property from textbox to combobox in PropertyGrid, but after I run this, it is still a textbox. Could anyone help to solve this? public class…
Mers Tho
  • 149
  • 1
  • 9
5
votes
1 answer

WPF PropertyGrid supports multiple selection

Is this documentation still valid or am I missing something? http://doc.xceedsoft.com/products/XceedWpfToolkit/Xceed.Wpf.Toolkit~Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid~SelectedObjects.html PropertyGrid control does not appear to have…
dotNET
  • 33,414
  • 24
  • 162
  • 251
5
votes
1 answer

Add type descriptors to all List for a generic implementation of property grid expansion?

I defined a custom ExpandableObjectConverter for collections: internal class ExpandableCollectionConverter : ExpandableObjectConverter { public override PropertyDescriptorCollection GetProperties( ITypeDescriptorContext context, object…
Victor Zakharov
  • 25,801
  • 18
  • 85
  • 151
5
votes
5 answers

Changing the PropertyGrid's Description and Category attributes at runtiome

I'm working on a business application that use the PropertyGrid. My project leader want me to localize the texts in the PropertyGrid at runtime. Hurray!!! irony I have tried many days to localize the PropertyGrid. But I have trouble changing the…
Mc_Topaz
  • 567
  • 1
  • 6
  • 21
5
votes
5 answers

How to change the DisplayNameAttribute on runtime to use in a Property Grid C#

I am wondering how to change the DisplayNameAttribute on runtime, I want the displayName to be Feet instead of Meters in my property grid when I do some conversions, is that possible? [DisplayName("Meters")] public double Distance { …
DogDog
  • 4,820
  • 12
  • 44
  • 66
5
votes
2 answers

TypeConverter in propertygrid only converts from string, not to

Only the ConvertTo method gets called(a lot of times) when accessing the propertygrid. This correctly returns the "Foo!" string in the propertygrid. When I click to edit I get an exception Cannot convert object of type Foo to type System.String.(not…
Robert Massa
  • 4,345
  • 1
  • 32
  • 44
5
votes
3 answers

Adding Editor / EditorAttribute at Run-time (Dynamically) to an Object's Property

How to add the EditorAttribute (Editor) to an object's property at run-time? I have My.Settings.ExcludeFiles, which is created by the settings designer as Public Property ExcludedFiles() As Global.System.Collections.Specialized.StringCollection.…
AMissico
  • 21,470
  • 7
  • 78
  • 106
5
votes
2 answers

PropertyGrid and Dynamic Types of Objects

I'm writing a GUI application where I need to enable editing properties of arbitrary objects (their types are only known at run-time). I've decided to use the PropertyGrid control to enable this functionality. I created the following…
Marina
  • 53
  • 1
  • 1
  • 3
5
votes
2 answers

How to display Object with sub-class in PropertyGrid

I'm going to use PropertyGrid to show my Objects. Here is the info class. The Info class has some properties which is composed of the class type. However, the sub-class doesn't show the properties. Do you have any idea? Code snippet: using…
Changju.rhee
  • 463
  • 3
  • 11
  • 26
5
votes
3 answers

Limitations of using .NET 2.0 (Windows Forms) controls in WPF?

I want to start a new application on WPF. The new User interface in WPF needs DataGridView control and PropertyGrid Control. But it looks like that these two controls won't exist in WPF and I want to host these two controls using…
Ashish Ashu
  • 14,169
  • 37
  • 86
  • 117
5
votes
3 answers

PropertyGrid control - modify the position of the central splitting vertical line

I have a PropertyGrid control in WinForms (http://msdn.microsoft.com/en-us/library/aa302326.aspx). Now I want to move the middle vertical line more to the left (It is always centered, but my keys are very short, while the values are Paths, which are…
CBenni
  • 555
  • 1
  • 7
  • 20
5
votes
1 answer

How do you use NodaTime Classes in a PropertyGrid?

I'm converting some application code to use NodaTime classes instead of System.DateTime. Part of my application uses the PropertyGrid control to allow a user to edit a class containing both a LocalDate and an Instant. Without changing anything,…
scott
  • 1,127
  • 1
  • 12
  • 21
5
votes
2 answers

A property grid in jQuery

I want to create a property grid like this: Ext JS Property Grid demo However I don't want to use extjs, and am using jQuery instead. What plugin would most easily enable to me create a propertygrid? jqGrid is the only one that I know of right…
Jourkey
  • 33,710
  • 23
  • 62
  • 78
5
votes
1 answer

How to set length for PropertyGrid items in c#?

For example I have 2 items: Item1 is string and Item2 is int. How can I set max length for Item1 8 chars and for Item2 5 digits(in c#)?
Ali Ahmadi
  • 2,387
  • 4
  • 31
  • 48
5
votes
4 answers

WPF UI control vendors - ActiPro, Telerik, Xceed, Infragistics, DevExpress and others

I have to choose a commercial WPF UI control library for our project. Browsing the web I have found these major vendors: Actipro: http://www.actiprosoftware.com/Products/DotNet/WPF/WPFStudio/Default.aspx Telerik:…
mark
  • 59,016
  • 79
  • 296
  • 580