Remove Method - ListView Items

This method removes the specified list item from the ListView control.

Client support

   Newlook Smartclient only.

Syntax

App.ActiveForm.ListViewControl.ListItems.Remove(Index)

Parameters

Index – (Integer, Required)

The index of the list item to be removed.

Returns

Returns a Boolean indicating the success or failure of the action.

Use

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.

Examples

EXAMPLES

The following example will remove the entire 1st column of data a ListView control:

JSCRIPT

function RemoveColumn()

{

//Remove the first column

removeSuccess = App.ActiveForm.ListViewControl.ListItems.Remove(0);

App.SetValue("RemoveSuccess", removeSuccess);

}

 

VB SCRIPT

Sub RemoveColumn

   'Remove 1st column of list view and its data

   App.ActiveForm.ListViewControl.ListItems.Remove (0)

End Sub

See Also

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

Applies To

ListView ListItems collection


© 2004-2021 looksoftware. All rights reserved.