4

Is there a hide/show column functionality on jqGrid like in flexigrid? I want the user be capable of hiding columns, so it will be easy for them to review related columns(informations)

Green Lantern
  • 858
  • 10
  • 21
  • Probably [ColumnChooser](http://www.trirand.com/jqgridwiki/doku.php?id=wiki:jquery_ui_methods#column_chooser) is what you need. – Oleg Jun 03 '11 at 09:08

2 Answers2

7

Check out hideCol() and showCol()

$('#tblId').hideCol('column');

$('#tblId').showCol('column');

Instead of the column name you can use the column index, too.

But I haven't seen this feature implemented (e.g. selecting from the header directly).

dertkw
  • 7,798
  • 5
  • 37
  • 45
0
JQGrid1.Columns.FromDataField(ColumnName).Visible = false;
kirk
  • 997
  • 9
  • 14