ListControl.SetPostDataSelection(Int32) ListControl.SetPostDataSelection(Int32) ListControl.SetPostDataSelection(Int32) ListControl.SetPostDataSelection(Int32) Method

Definition

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

protected:
 void SetPostDataSelection(int selectedIndex);
protected void SetPostDataSelection (int selectedIndex);
member this.SetPostDataSelection : int -> unit
Protected Sub SetPostDataSelection (selectedIndex As Integer)

Parameters

selectedIndex
Int32 Int32 Int32 Int32

The index of the selected item in the Items collection.

Remarks

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

Applies to