Here is the way I did it.
Protected Sub FormView1_DataBound(ByVal sender As Object, ByVal e As System.EventArgs) Handles FormView1.DataBound
Dim CurMode As String
CurMode = FormView1.CurrentMode.ToString
If CurMode = "Edit" Then
Dim MyDropDown As DropDownList
MyDropDown = FormView1.FindControl("YourDropDownList")
If IsNothing(MyDropDown) = False Then
PopulateDropDown(MyDropDown)
ShowControl("YourDropDownList")
End If
End If
HTH
>Hi All,
>
>Is there a way to provide a drop down list when editing or adding a record using the Form View control ? When editing I would like to show the current value in a drop down list with the option of selecting from the provided list.
>
>Thank you,
>Daniel
It's Time to get a gun.
That's what I've been thinkin.
I think I can afford one, If I do a little less Drinkin.www.TrueGeeks.com