This is a migrated thread and some comments may be shown as answers.

Category not displayed

1 Answer 126 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Conrad
Top achievements
Rank 1
Conrad asked on 29 May 2013, 05:02 AM

I'm evaluating the Winforms tool and have made a small project to try the RadPropertyGrid component.  Here's the relevant code:

            radPropertyGrid2.PropertySort = PropertySort.CategorizedAlphabetical;

            RadPropertyStore store = new Telerik.WinControls.UI.RadPropertyStore();            

            store.Add(new PropertyStoreItem(typeof(double), "Foobar", 1.234, "ahdfl fdlskhs hjdfd", "Ack"));

            this.radPropertyGrid2.SelectedObject = store;


When I run my project using this code, the category name is not drawn above the property.  See attached picture. I've tried creating properties manually using the PropertyStore, and also by using the [Category] attribute on my selected objects.  Neither seem to work.

Any advice would be greatly appreciated.

NOTE: when I use an object with multiple properties as the selected object, each property appears to get a separate group associated with it, even though the name on each group is blank.

1 Answer, 1 is accepted

Sort by
0
Accepted
Conrad
Top achievements
Rank 1
answered on 29 May 2013, 05:25 AM
Never mind... figured it out.  I have EnableCustomGrouping set to true, which prevented the group labels from being created automatically.
Tags
PropertyGrid
Asked by
Conrad
Top achievements
Rank 1
Answers by
Conrad
Top achievements
Rank 1
Share this question
or