Property value is reset when setting the IsReadOnly property

Grids for WPF Forum

Posted 13 years ago by Anders Lassen
Version: 11.1.0541
Avatar
Hi,

I have property item which behaves strange when the property grids 'IsReadOnly' property is set to false.

The property item is defined as:

            PropertyGridPropertyItem propertyItemPatientSex = new PropertyGridPropertyItem();

            propertyItemPatientSex.ValueName = "Sex";
            propertyItemPatientSex.Value = "Male";
            propertyItemPatientSex.IsLimitedToStandardValues = true;
            propertyItemPatientSex.StandardValues = new string[] { "Male","Female"};
The problem is that the value of the property item is set to empty (""), when the IsReadOnly property is changed to false.

Is this a bug ???

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Anders,

I tried your code snippet, but was unable to reproduce the issue you describe. Please try to put together a complete sample that reproduces the issue and email it over to our support address. Once I have that I can take a closer look.


Actipro Software Support

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.