Print Page | Close Window

using xtpGridSortNoSort

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=12648
Printed Date: 25 November 2024 at 12:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: using xtpGridSortNoSort
Posted By: Osiris
Subject: using xtpGridSortNoSort
Date 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




Replies:
Posted By: Oleg
Date Posted: 10 November 2008 at 11:32am
Hi,
Can you try it with our sample ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Osiris
Date 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'.


Posted By: Oleg
Date Posted: 11 November 2008 at 3:30pm
thanks :)

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net