Sets the ListItem.Selected property of a System.Web.UI.WebControls.ListItem control after a page is posted.
- selectedIndex
- The index of the selected item in the ListControl.Items collection.
The ListControl.SetPostDataSelection(int) method is a helper method that maintains the selected item in the System.Web.UI.WebControls.ListControl control after a page is posted.