Print Page | Close Window

Possible to hide the category?

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=11632
Printed Date: 12 December 2024 at 10:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Possible to hide the category?
Posted By: MacW
Subject: Possible to hide the category?
Date Posted: 29 July 2008 at 6:58am
I would like to use the grid without a category. I usually have only one category, and the left and top category margins and the empty category caption waste screen space and don't look good (see screen shot).

Is it possible to hide the category somehow?





Replies:
Posted By: Oleg
Date Posted: 29 July 2008 at 8:19am
Hi,
 
add grid.SetPropertySort(xtpGridSortNoSort);


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


Posted By: MacW
Date Posted: 29 July 2008 at 8:44am
Hi, Oleg

that's a nice one. Works well.
I combined it with the other tip from

https://forum.codejock.com/forum_posts.asp?TID=10300&KW=margin - https://forum.codejock.com/forum_posts.asp?TID=10300&KW=margin

to hide the left margin which remains if the category itself is not shown.

Perhaps we could somehow add this as a built-in feature to one of the upcoming versions of XTP?


Posted By: MacW
Date Posted: 27 June 2011 at 12:31pm
Unfortunately this trick no longer works with recent XTP releases.
Any other work-around?

The margin trick still works but the [+] button is visible even if there is only one category.


Posted By: Oleg
Date Posted: 28 June 2011 at 6:09am
You still have SetPropertySort(xtpGridSortNoSort); ?

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


Posted By: MacW
Date Posted: 30 June 2011 at 3:35pm
Yes.
I can shift the contents to the left with the negative margin, but the "top"-group is always visible:






Posted By: Oleg
Date Posted: 07 July 2011 at 7:20am
Hi,

Its not default behavior - should be something you customized in own code. Try reproduce wit our sample.


-------------
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