Suresh Atta
Suresh Atta

Reputation: 122018

Disable a specific column in GWT Grid

Is there any way to disable a specific column in gwt data grid ..something like

myColumn.setDisable(true);

My purpose is to prevent the selection of a SelectionCell in the datagrid.That should be non editable ..

any way to achieve that ?

Upvotes: 2

Views: 1308

Answers (1)

Andrei Volgin
Andrei Volgin

Reputation: 41099

You have two options:

A. You can create a custom cell which would render element set to disabled under certain conditions. This is the closest to what you want, but it may also be a little confusing to your users - they may think your table is broken.

B. You can remove column with SelectionCell and insert column with TextCell in its place.

Upvotes: 2

Related Questions