 End If
        SetUpValidator(RequiredFieldValidator1)
        SetUpValidator(DynamicValidator1)
    End Sub
    
    Protected Overrides Sub OnDataBinding(ByVal e As EventArgs)
        MyBase.OnDataBinding(e)
        If Mode = DataBoundControlMode.Edit AndAlso FieldValue IsNot Nothing Then
            Dim selectedValueString As String = GetSelectedValueString()
            Dim item As ListItem = DropDownList1.Items.FindByValue(selectedValueString)
            If item IsNot Nothing Then
                DropDownList1.SelectedValue = selectedValueString
            End If
        End If
    End Sub
    
    Protected Overrides Sub ExtractValues(ByVal dictionary As IOrderedDictionary)
        Dim value As String = DropDownList1.SelectedValue
        If (value = String.Empty) Then
            value = Nothing
        End If
        dictionary(Column.Name) = ConvertEditedValue(value)
    End Sub
    
End Class
