Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to format gridview contents
Message
From
13/10/2011 19:20:23
 
 
To
All
General information
Forum:
ASP.NET
Category:
WebForms
Title:
How to format gridview contents
Miscellaneous
Thread ID:
01526379
Message ID:
01526379
Views:
95
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
Reply
Map
View

Click here to load this message in the networking platform