ListControl.SetPostDataSelection(Int32) Método

Definição

Define a propriedade Selected de um controle ListItem depois que uma página for publicada.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)

Parâmetros

selectedIndex
Int32

O índice do item selecionado na coleção Items.The index of the selected item in the Items collection.

Comentários

O SetPostDataSelection método é um método auxiliar que mantém o item selecionado no ListControl controle depois que uma página é postada.The SetPostDataSelection method is a helper method that maintains the selected item in the ListControl control after a page is posted.

Aplica-se a