WebListBox 0 column width doesn't hide data web 2.0

Decided to dig into the API. Place this method in a module:

Public Sub ColumnVisible(Extends lb as WebListBox, index as Integer, Assigns value as Boolean)
  Session.ExecuteJavaScript( "$('#" + lb.ControlID + "_table').DataTable().column(" + index.ToString( "#" ) + ").visible(" + value.ToString.Lowercase + ");" )
End Sub

Call as:

Listbox1.ColumnVisible(1) = False
6 Likes