![]() |
Possible to hide the category? |
Post Reply ![]() |
Author | |
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() 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? ![]() |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
add grid.SetPropertySort(xtpGridSortNoSort);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() |
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 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? |
|
![]() |
|
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
You still have SetPropertySort(xtpGridSortNoSort); ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MacW ![]() Senior Member ![]() Joined: 26 June 2007 Status: Offline Points: 253 |
![]() ![]() ![]() ![]() ![]() |
Yes.
I can shift the contents to the left with the negative margin, but the "top"-group is always visible: ![]() |
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Its not default behavior - should be something you customized in own code. Try reproduce wit our sample.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |