Completed
Last Updated: 31 Mar 2014 10:18 by ADMIN
ADMIN
Anton
Created on: 07 Nov 2013 03:12
Category: PropertyGrid
Type: Bug Report
0
FIX. RadPropertyGrid - when the DefaultValue attribute is Color.Empty, the items are styled with bold font and "Modified" icon.
RadPropertyGrid - when default value attribute is Color.Empty, the items is styled with bold font and "Modified" icon. 

Workaround: Use ItemFormatting event to style the item correctly. Code to reproduce: public class TestObj { private Color someColor; public TestObj() { this.someColor = Color.Empty; } [DefaultValue(typeof(Color), "Empty")] public Color SomeColor { get { return someColor; } set { someColor = value; } } } TestObj newObj = new TestObj(); this.radPropertyGrid1.SelectedObject = newObj; 
0 comments