propertygrid

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 basically need a container that repeats rows of text on the left with a control on the right. ...

using PropertyGrid - Adding special property to PropertyGrid (e.x.: property that a user got a checkbox and a textbox)

I read some stuff about PropertyGrid (cause i am pretty new to that control) like: Dynamic_Propertygrid DynPropGrid PropertyGridInCSharp but i am still trying to get info about how to create my own Property Type.. like when the user wants to enter a value than he needs to click on checkbox and enter text in a textbox.. like two cont...

Actipro property Grid show/hide properties

Hi, I am Using Actipro version 4.5.0485 property grid. i have a requirement to show/hide properties if a checkbox is check. i was able to do this by applying filters. but then i need to refresh the property grid every time chexbox selection is changed. i am using selectedObject to populate the property grid. Can any one please help me ...

Inherited Control Visible/Enabled Property Value Always True: PropertyGrid

I have created a custom WinForms hosting environment. Which has a toolbox and a PropertyGrid. The controls displayed in the Toolbox are inherited from existing WinForm controls. DropDownList Source: public interface IPropertyFilter : ICustomTypeDescriptor { PropertyDescriptorCollection FilterProperties(PropertyDescriptorCollection...

Use PropertyValueEditors At Runtime

I am trying to build a WPF control that allows users to edit the values of non-specific types outside of the context of a runtime PropertyGrid. The WinForms PropertyGrid makes use of UITypeEditors and these can be obtained and utilised at runtime via the relevant TypeDescriptor method. The Visual Studio PropertyGrid, on the other hand,...

Custom Editor for a Boolean Property in a PropertyGrid (C#)

Hi, I want to assign a custom editor to a boolean property in a PropertyGrid. I'm using the standard propertygrid (from namespace System.Windows.Forms). It is possible to assign custom editors to properties using the UITypeEditor class. However, as far as I can see, it is not possible to use it for a boolean property. I've tried to so...

PropertyGrid and Providing Undo

When using the PropertyGrid and passing in an Object for the user to make changes, what is the best approach for handling a cancel/undo. Do you provide a copy of the original object into the property grid make your changes then if the user accepts the mods then update the values into the original object? Make a copy of the original set...

Reflection and custom ControlDesigner doesn't seem to work in c#

I have made a custom ControlDesigner that I need to include and exclude properties shown in the property grid. But for some reason it seems just to ignore the code? I don't know what I might have done wrong? Could I be missing something? Do I need to setup VS or something? Also in the examples I have found they seem to disagree about wh...

Retrieve Collections and Enums Selected Value WPF Property Grid

Hi All, I am using WPF PropertyGrid (http://www.codeplex.com/wpg) in my project. But i have some problems with this component. 1) I can show my IList collections in a ComboBox. But i can't retrieve selected value. How can i get selected value? 2) Enums are automatically shown in combobox, but i can't retrieve selected value like #1. ...

StringConverter GetStandardValueCollection

I am trying to use property grid for displaying data. I have to write StringConverters for my predefined string constants so that they can be shown on a combo box. Consider a list of colors and another list of angles 0,90,180,270. There are many such lists I want to display on the grid. I am writing new classes deriving from StringCo...

Providing a ReadOnly PropertyDescriptor to an Object

I've setup my class to inherit from ICustomTypeDescriptor I've also then setup this method for the GetProperties implementation for the inheritance. Public Class POSTerminal Inherits BasePacket Implements ICustomTypeDescriptor Public Function GetProperties(ByVal attributes() As System.Attribute) As System.ComponentModel.Prope...