Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Categorized Property Grid question Collapse All
Subject Author Date
Offer Har May 30, 2007 - 3:43 AM

Dear Support,

I have a Categorized Property Grid, and I see that the categories are sorted by default.
I would like the categories to be in the order i insert them into the grid.

Please Advise.

Regards,
Ron.

Technical Support May 30, 2007 - 12:09 PM

You can achieve this using the following approach:

1) Use the following code before assigning a property store to the property grid control:

CExtPropertyGridCtrl * pPGC = . . .
CExtPropertyGridWnd * pPGW =
    STATIC_DOWNCAST( CExtPropertyGridWnd,
        pPGC->GetChildByRTC( RUNTIME_CLASS( CExtPropertyGridWndCategorized ) ) );
    pPGW->m_bSortedCategories = false;
2) Insert your property values and property categories into each sublevel of the property tree using the same order which you want to see on the screen. The previous step turns off any sorting in the property grid.

Offer Har Jun 4, 2007 - 7:52 PM

Thanks.