PDA

View Full Version : show hide columns in Grid



anshumap
6 Oct 2010, 4:57 AM
Hi,

I am using grid and grouping view, i have a column which i am doing as column.sethidden(true), this hides the column.

But i want to show this column in case my data field matches to a criteria.

for eg. if i get some duplicate data i am setting isduplicate as true in the bean list which i am getting from DB and by default it is false.
I want to show this column if the value of this field is true.

Any help is highly appreciated.

Regards
anshuman

sven
6 Oct 2010, 9:37 AM
I want to show this column if the value of this field is true.
You need to show it again than.


grid.getColumnModel().setHidden(colIndex,false);