He was very contented with the exit of the new version, not to say happy, like baby with new toy, until I realized that in the controls like GridView, DetailsView, if in some column I want to formating it, it does not pay attention to the formateo, ignores it. I talk about format it to for example I have a column given back by a consultation to my data base, that gives back a field dates and another amounts, the given back value are date = 01/01/2005, amount = 2.0 this was simple to solve with the DataFormatString field = { 0:dd/MM/yyyy } for the date and DataFormatString = { 0:n0 } for the amount, but it takes the surprise to me of which it does not pay attention to this.
BUUUGGGGG ?
Hallo,<renegado_lethal> wrote:
> He was very contented with the exit of the new version, not to say happy,
> like baby with new toy, until I realized that in the controls like
> GridView, DetailsView, if in some column I want to formating it, it does
> not pay attention to the formateo, ignores it. I talk about format it to
> for example I have a column given back by a consultation to my data base,
> that gives back a field dates and another amounts, the given back value
> are date = 01/01/2005, amount = 2.0 this was simple to solve with the
> DataFormatString field = { 0:dd/MM/yyyy } for the date and
> DataFormatString = { 0:n0 } for the amount, but it takes the surprise to
> me of which it does not pay attention to this.
you have to set 'HtmlEncode' to 'false':
<asp:BoundField ... DataFormatString="{0:dd/MM/yyyy}" HtmlEncode="false" />
--
Regards, Olaf
0 comments:
Post a Comment