ListControl::SetPostDataSelection Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

Sets the Selected property of a ListItem control after a page is posted.

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

protected:
void SetPostDataSelection(
	int selectedIndex
)

Parameters

selectedIndex
Type: System::Int32

The index of the selected item in the Items collection.

The SetPostDataSelection method is a helper method that maintains the selected item in the ListControl control after a page is posted.

.NET Framework
Available since 2.0
Return to top
Show: