Hide a column in Pivot Table

V

Vaishali Patel

Hi,
I am using a Pivot table in my .Net web application. I donot want to show
all columns that get bound to the pivot table. What is the best way I can
write Client-side code to hide a specific Column.

Regards,
Vaishali Patel
 
A

Alvin Bruney [ASP.NET MVP]

Have a look at the pivotaxis object

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
 
J

Joe Sampino

try this:

ActiveView.Totals("XXX").AutoFit = false
ActiveView.Totals("XXX").Width = 0

it should also hide the total column for the measure if there would be one.

--Joe


Alvin Bruney said:
Have a look at the pivotaxis object

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The O.W.C. Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $19.99
-------------------------------------------------------


Vaishali Patel said:
Hi,
I am using a Pivot table in my .Net web application. I donot want to show
all columns that get bound to the pivot table. What is the best way I can
write Client-side code to hide a specific Column.

Regards,
Vaishali Patel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top