Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DataBound GridView - accessing fields in RowBound method
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01310810
Message ID:
01310840
Vues:
9
>>Hi everybody,
>>
>>How can I access fields my GridView is bound to in its RowBound method?
>>
>
>Look at the e.Row.DataItem object.

The only way I can found is to use
string PersonName = e.Row.Cells[5].Text + " " + e.Row.Cells[6].Text; which I don't like since how would I know that 5th column is the First Name and 6th is the Last Name?

Doesn't sound good to me and much harder than VFP...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform