Version

ValueList Property (UltraOptionSet)

Gets/sets the ValueList used by the control
Syntax
'Declaration
 
Public Property ValueList As Infragistics.Win.ValueList
public Infragistics.Win.ValueList ValueList {get; set;}
Example
This sample shows how to use the valueList property to sort the items.

Private Sub SwapItemOrder()

    If Me.UltraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.AscendingByValue Then
        Me.UltraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.DescendingByValue
    Else
        Me.UltraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.AscendingByValue
    End If

End Sub
private void SwapItemOrder()
{

	if(this.ultraOptionSet1.ValueList.SortStyle == Infragistics.Win.ValueListSortStyle.AscendingByValue)
		this.ultraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.DescendingByValue;
	else
		this.ultraOptionSet1.ValueList.SortStyle = Infragistics.Win.ValueListSortStyle.AscendingByValue;

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also