Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ListView.SelectItem Method

.NET Framework 4.6 and 4.5

Selects the item that is in edit mode in a ListView control.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public void SelectItem(
	int rowIndex
)

Parameters

rowIndex
Type: System.Int32

The index of the item that is in edit mode.

ExceptionCondition
InvalidOperationException

The item index is negative.

This method raises the SelectedIndexChanged event.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft