Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loading A Combobox - With Code
Message
De
14/03/2003 00:09:37
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00765655
Message ID:
00765719
Vues:
18
Kirk,

Glad you found a solution ... I had been thinking about suggesting using a DataView, however, it *should* work with a DataTable, so I'm still not sure why it wasn't working that way.

~~Bonnie


>I gave up and went to the VFPTOOLKIT...wow, it all worked.
>
>New Code:
>
>
>       'Create a Connection
>        Dim oConn As System.Data.OleDb.OleDbConnection
>        oConn = SqlConnect(gcConnString)
>
>
>        Dim lcSQL As String
>        lcSQL = "Select deptdesc,deptid from coDept where isactive=1 order by Deptdesc"
>        Dim goView As New Data.DataView()
>
>        goView = VFPToolkit.vfpData.SqlExecute(oConn, lcSQL, "Departments")
>
>        Me.ComboBox1.DataSource = goView
>        Me.ComboBox1.DisplayMember = "deptdesc"
>        Me.ComboBox1.ValueMember = "deptid"
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform