Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to format gridview contents
Message
De
13/10/2011 19:20:23
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Titre:
How to format gridview contents
Divers
Thread ID:
01526379
Message ID:
01526379
Vues:
96
Hi -
I need to dynamically format the columns in a gridview. Something like
e.Row.Cells(1).Text = String.Format("{0:C}", DataBinder.Eval(e.Row.DataItem, "HURF126"))
My problem is that the literal string (HURF126) is unknown at designtime, so I need a way to dynamically determine the table field that is associated with e.row.cells(1) or find another syntax. Can someone suggest a way to do this?
Thanks
Répondre
Fil
Voir

Click here to load this message in the networking platform