This method removes the specified column, header and items from the control.
Newlook Smartclient only.
App.ActiveForm.ListViewControl.ColumnHeaders.Remove(Index)
Index – (Integer, Required)
The index of the list item or column to be removed.
Returns a Boolean indicating the success or failure of the action.
It is worth noting that the View property of a ListView control must be set to Report, in order to view column headers in the control.
The following example will remove the entire 1st column from a ListView control:
function RemoveColumn()
{
//Remove the first column
removeSuccess = App.ActiveForm.ListViewControl.ColumnHeaders.Remove(0);
App.SetValue("RemoveSuccess", removeSuccess);
}
Sub RemoveColumn
'Remove 1st column of list view and its data
App.ActiveForm.ListViewControl.ColumnHeaders.Remove (0)
End Sub
Add Method - ColumnHeaders | Add Method - Items | Clear Method | RefreshForm method | Remove Method - Function Keys | Remove Method - Items | Remove Method - Nodes | Remove Method - Controls
ListView ColumnHeaders collection
© 2004-2021 looksoftware. All rights reserved.