Last post Mar 24, 2009 10:32 PM by ricka6
Mar 23, 2009 07:33 PM|msingareddy|LINK
I cannot get the dataformatstring to work for a phone # column with a DisplayFormat attribute applied to it as follows :
true, DataFormatString =
However the following attribute works just fine when applied to a date time column.
I don't understand what I'm doing wrong. Any ideas? The phone number is defined as a string datatype and the VisitDt is defined as a datetime datatype.
Mar 23, 2009 10:05 PM|ricka6|LINK
DataFormatString applies to dateTime, float, int, strings. You are using it incorrectly.
It simply uses
You can create a Phone field template and and use UIHint to specify the phone template.
Mar 24, 2009 10:32 PM|ricka6|LINK
I looked at the source code -
BoundField.DataFormatString simply calls
Thanks for pointing this out. I opened a doc bug. Refer to
String.Format until the documentation is updated.