Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add/Edit data using Form View control
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01135300
Message ID:
01135772
Vues:
12
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform