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:
01328585
Vues:
8
>Cast it to the object type, then reference it's properties directly, ex. instead of DataRowView view = e.Row.DataItem as DataRowView, change "DataRowView" to the true object type. Then use view.PropertyName to access it.

I already changed it yesterday to use Cells (I only have 3 fields in the grid). Do you think it's better to just leave it as is?

Thanks again.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform