Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / GcListBox Class / SelectedValue Property
Example


In This Topic
    SelectedValue Property (GcListBox)
    In This Topic
    Gets or sets the value of the selected item, obtained by using the SelectedValuePath. This is a dependency property.
    Syntax
    'Declaration
     
    <LocalizabilityAttribute(LocalizationCategory.NeverLocalize)>
    <BindableAttribute(True)>
    Public Property SelectedValue As Object
    'Usage
     
    Dim instance As GcListBox
    Dim value As Object
     
    instance.SelectedValue = value
     
    value = instance.SelectedValue
    [Localizability(LocalizationCategory.NeverLocalize)]
    [Bindable(true)]
    public object SelectedValue {get; set;}

    Property Value

    The value of the selected item, obtained by using the SelectedValuePath, or a null reference (Nothing in Visual Basic) if no item is selected. The default value is a null reference (Nothing in Visual Basic).
    Example
    The following code example demonstrates how to use SelectedValue and SelectedValuePath property.
    See Also