I am displaying a list of business objects in a GridView control, but am running into some trouble formatting a SmartDate property. I have disabled the HtmlEncode property for the column and have the DataFormatString property set to {0:MM/dd/yyyy hh:mm tt}, but the grid always displays the default format. Is there something special that needs to be done to make this work for the SmartDate data type?
Thanks!
Danny
You are supposed to use the SmartDate interally for your class and expose a String Property to the world in a Public Property. Then you can format the output of the SmartDate to a String in the Property Get using the Format String.
e.g.
Protected mTstamp As New Csla.SmartDate
Public
Overridable Property Tstamp() As Stringetc.
Joe
Copyright (c) Marimer LLC