propertygrid

Dynamically enumerating values for a property in .Net

You know how a TreeView control's ImageList property lists all ImageLists on a form? I need something similar, but with a list of strings. It's like an enumeration, but defined at runtime, with the object that exposes the property in a PropertyGrid. So, with a list of strings like { "foo", "bar", "grill" } the property should list those...

C# PropertyGrid drag drop

I'm trying to implement drag/drop support to a propertygrid in C# using VS2005 (.NET 2.0). The propertygrid can handle the dragenter etc. events, but there doesn't seem to be a way to get the griditem under the pointer during a drag event. The best I've been able to get so far is to use the selectedgriditem property to retrieve a custo...

How to set propertygrid griditem tag

I've got a PropertyGrid that reflects properties of my class. I am watching the PropertyValueChanged event and notice that PropertyValueChangedEventArgs provides the GridItem that was changed. That GridItem has a Tag property that I can get. I don't see how to set the Tag property of a GridItem to a value. How can I set the Tag proper...

.Net Property Grid. Is there a way to let the Grid manipulate object in different way

As I understood , The property grid is given an object which it can manipulate by extracting its Properties using reflections. My problem is that I have a set of Parameters that is determined during run-time , thus I can't staticly compose a class with properties to represent this set. I have two idea in mind to solve this problem but ...

Changing the width of PropertyGrid left-side collection editor/view

Anything with a long string simply introduces an unusable view with a scrollbar.. Is the width on collection editor fixed by the-design and can a splitter be introduced to this awesome presentation? ...

Runtime-dynamic properties in QPropertyEditor

Hello, I am using the QPropertyEditor from Qt-Apps.org. is it possible to create a class with exposed Properties where the amount of properties is runtime-dynamic? So for example you have a class which represents a vector of floats with an arbitrary length which is not known at compile time. So you have a vector<float> myFloats; as ...

C#/winforms: how to best bind a propertygrid and a System.Data.DataRow

hello, i have System.Data.DataRows with several fields, most of them just plain types like int, single, string. what is the best way to make them editable using a propertygrid? it should work automatically no matter what kind of fields the datarow has, but it should not display all of them. i want to provide a list of properties that s...

How to create a property to store the index of the selected value from another property?

Hi everyone, I need help with the following problem: I have a class with two properties. private byte m_selectedValue; public byte SelectedValue { get { return m_selectedValue; } set { m_selectedValue = value; } } private string[] m_possibleValues; public string[] PossibleValues { get { return m_possibleValues; } set { m_poss...

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 textures to choose from, if they want to use a texture the application hasn't loaded yet they c...

Gtk# property grid.

Does anybody out there know of a lgpl licensed Property Grid control for c#. I know there is a property grid control in the monodevelop source but I was wondering if there were other options? ...

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 them to pick one of the items from the List. When closed, the PropertyGrid would be updat...

Name property of UserControl or Control

What is special about the Name property of a Control or UserControl that causes it to be displayed as "(Name)" inside the property grid within Visual Studio? ...

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 PropertyGrid uses for my type's property, examine the solution, construct the Uris and pre...

Change DisplayName attribute for a property

I am looking for a way to change the value of the DisplayName attribute of a property at run-time. Is this even possible in Windows Forms? ...

How to implement Auto-Complete with a StandardValuesCollection on a PropertyGrid

I have a property on an object whose custom TypeConverter specifies an exclusive StandardValuesCollection (let's say "Foo" and "Bar"), so that when editing this property via a PropertyGrid, a drop-down list of these values is displayed. I would also like to be able to directly type in the field on the PropertyGrid, and have it auto-comp...

ExtJS PropertyGrid - Dynamically setting source

I am working on a simple PropertyGrid. If I set the source property with some json object at design time, it is displaying properly. But when I tried setting the source data dynamically, it is not displaying data. This is my code: ConceptPropertiesPanel = function() { this.source = { ***// if i set source this way, it will work*...

PropertyGrid RTL support

Is it possible to switch PropertyGrid to RTL layout? Seems to be that setting RightToLeft property to Yes does not do the job. There are RtlTranslateAlignments and RtlTranslateContent methods in PropertyGrid, should I use it in any way? If this property is unsupported are there free analogues that support RTL layout correctly? Note: I'...

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

Dear ladies and sirs. 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: http://www.telerik.com/products/wpf.aspx Xceed: http://xceed.com/pages/TopMenu/Products/ProductSear...

Initiating editing on a PropertyGrid.

I'm looking for a good way to programmatically initiate editing on a System.Windows.Forms.PropertyGrid. I can select the GridItem that I want, but that doesn't move the cursor into the edit field. ...

C# Winforms PropertyGrid and ErrorProvider

I'm working on extending the errorprovider to the propertygrid and treeview controls. I found a very helpful post at: Example detailing how to add the errorprovider to a propertygrid, and it works very well. My question is how did the author know that IPropertyValueUIService is the interface that the propertygrid uses to display the i...