Property value is reset when setting the IsReadOnly property

Grids for WPF Forum

Posted 12 years ago by Anders Lassen
Version: 11.1.0541

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 12 years ago by Actipro Software Support - Cleveland, OH, USA
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 (v22.1.3) was released 17 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.