Monthly Archives: March 2008

Format data in asp.net using BoundColumn.DataFormatString Property

Syntax
 

Inline

<asp:boundcolumn dataformatstring = strFormat … >

Script

BoundColumn.DataFormatString = strFormat

 
Property Value
 

strFormat

A formatting string that specifies the display format of data in the column.

The property is read/write with no default value.
Remarks
Use the DataFormatString property to specify the display format for data in the column.
The data format string consists of two parts, separated by a [...]