Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add/Edit data using Form View control
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01135300
Message ID:
01135772
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform