Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - using xtpGridSortNoSort
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

using xtpGridSortNoSort

 Post Reply Post Reply
Author
Message
Osiris View Drop Down
Groupie
Groupie
Avatar

Joined: 18 June 2007
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Osiris Quote  Post ReplyReply Direct Link To This Post Topic: using xtpGridSortNoSort
    Posted: 10 November 2008 at 8:50am
Hi there,

I've got a class derived from CXTPPropertyGrid that fills it's items and after that calls SetPropertySort( xtpGridSortNoSort ). But the grid is still displayed in categorized mode -> first it displays my dummy group and under this group all the items. I would expect the grid to display only the items without any groups.

What am I missing? Can you think of any circumstances that could cause the grid to not show the behaviour I expect?

Thanks in advance
Stefan

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 November 2008 at 11:32am
Hi,
Can you try it with our sample ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Osiris View Drop Down
Groupie
Groupie
Avatar

Joined: 18 June 2007
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote Osiris Quote  Post ReplyReply Direct Link To This Post Posted: 11 November 2008 at 10:25am
Hi Oleg,

yes I tried with the sample and it worked properly (of course it did ;) ).

But I figured out my mistake: SetPropertyOrder does not work if called between the grid methods BeginUpdate() and EndUpdate().

With SetPropertyOrder called after EndUpdate() everything is fine.

Thanks anyway
Stefan

P.S. There's a little typing error in your sample PropertyGrid\GridSample.
The caption of the last checkbox in the 'Behaviour' groupbox is 'Right To Let' instead of 'Right To Left'.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 11 November 2008 at 3:30pm
thanks :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.