Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Have a dropdown box display Field names
Message
De
12/03/2004 14:55:07
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Have a dropdown box display Field names
Divers
Thread ID:
00885767
Message ID:
00885767
Vues:
79
I am trying to populate a a dropdown box with the field names of a Ds to enable a user to select query Fields.

so i tried to use and arraylist something like this

dim lafldnames As New ArrayList
For intColumn = 0 To dsGrid.Tables(0).Columns.Count - 1

lafldnames.Add(dsGrid.Tables(0).Columns(intColumn).ColumnName.ToString)

next

DropDownList1.DataSource = Me.lafldnames
DropDownList1.DataBind()


however I get an error

DataBinder.Eval: 'System.String' does not contain a property with the name dsGrid.Tables(0).Columns(intColumn).ColumnName.ToString
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform