Jasser Jasser
Jasser Jasser

Reputation: 3

Set column width to zero in GWT GRID or FLEX TABLE

I am trying to set the column width to zero in a GWT-GRID in order to make it hidden. I tried

grid.GetColumnFormatter().setWidth(0, "0px");

But nothing happened.Is there any other way?

Upvotes: 0

Views: 856

Answers (1)

PVR
PVR

Reputation: 2524

In grid, whether you use FlexTableFormatter() or ColumnFormatter(), each column will occupy its size. In case if you want to resctrict it by some pixels you can do it. But you can not make it 0. Rather you can make add particular column run time.

Upvotes: 1

Related Questions