Hiding column in view programatically

HiI want to hide a cloumn in view programatically. Is it possible?

based on value in column, i want to hide it or unhide.

Its web application.

thanks in advance!

Subject: Hiding column in view programatically

Look at IsHidden property of NotesViewColumn class, it say it is Read-Write so you can set it programatically.

Subject: RE: Hiding column in view programatically

You can’t hide a column based on the value in the column, because each row of the column potentially has a different value. You can hide the column based on a formula, in the column properties advanced tab, but the formula can’t refer to fields because which document’s fields would that be?

What you can do is write a column formula that returns an empty string if you don’t want to display a value there. E.g.

@If(SomeField = “Foot”; “”; SomeField)