I have a gridview with an ObjectDataSource object that comes from a linq request.
One of the source variables is a period of time, and I bind the associated field with DataField = "MyTimeSpanVariable". Data contains time in seconds and minutes and very rarely in hours.
The data is displayed in its own format, but when I add HtmlEncode = "false" DataFormatString = "{0: hh: mm: ss}" to the properties of the linked field on the aspx page, it drops on the MyGridView.Databind () line. What am I doing wrong?
Thank.
source
share