This method removes the specified list item from the ListView control.
Newlook Smartclient only.
App.ActiveForm.ListViewControl.ListItems.Remove(Index)
Index – (Integer, Required)
The index of the list item 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 of data a ListView control:
function RemoveColumn()
{
//Remove the first column
removeSuccess = App.ActiveForm.ListViewControl.ListItems.Remove(0);
App.SetValue("RemoveSuccess", removeSuccess);
}
Sub RemoveColumn
'Remove 1st column of list view and its data
App.ActiveForm.ListViewControl.ListItems.Remove (0)
End Sub
Add Method - Items | Clear Method | RefreshForm method | Remove method - Column Headers | Remove Method - Function Keys | Remove Method - Controls | Remove Method - Nodes | Remove Method - Columns Headers | Remove Method - Function Keys | Remove Method - Controls | Remove Method - Nodes | Remove Method - Columns Headers
© 2004-2021 looksoftware. All rights reserved.