Cross Tab - hide column

Stimulsoft Reports.NET discussion
Post Reply
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Cross Tab - hide column

Post by Leandro Borges »

Hello.
It is possible in Cross Tab hide a column if the field is null and move other columns not to be an empty space?
Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Cross Tab - hide column

Post by HighAley »

Hello.

You could use filter for this.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Cross Tab - hide column

Post by Leandro Borges »

Hello.
Attached, example.
Note that there is a blank space. In the event before print, it was entered this if:

Event before print: CrossTab1_SumHeader2
if (Principal.QUE_CAMPO_DATA == "S")
{
CrossTab1_SumHeader2.Enabled = true;
}
else
{
CrossTab1_SumHeader2.Enabled = false;
}

Event before print: CrossTab1_Sum2
if (Principal.QUE_CAMPO_DATA == "S")
{
CrossTab1_Sum2.Enabled = true;
}
else
{
CrossTab1_Sum2.Enabled = false;
}

It is possible, according the if, move other columns to not have an empty space?

Thank you.
Attachments
Example.jpg
Example.jpg (118.44 KiB) Viewed 4837 times
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: Cross Tab - hide column

Post by Jan »

Hello, Leandro!

Sorry, you cannot remove the column from the crosstab in this way.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Cross Tab - hide column

Post by Leandro Borges »

Hello, Jan!
Exist some way? What?
Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Cross Tab - hide column

Post by Alex K. »

Hello,

In this case, you can remove it only in the CrossTab editor in the designer.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Cross Tab - hide column

Post by Leandro Borges »

Hello.
But the field should appear as If. If the if is true the field appears, otherwise not appear.
Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Cross Tab - hide column

Post by Alex K. »

Hello,

Unfortunately, it is not possible for the Cross-Tab component.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Cross Tab - hide column

Post by Leandro Borges »

Hello.
Ok.
Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Cross Tab - hide column

Post by Alex K. »

Hello

Let us know if you need any additional help.

Thank you.
Post Reply