Re: Gridview column formatting
- From: "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN@xxxxxxxxxxxx>
- Date: Thu, 18 Jan 2007 18:10:59 +0200
Set HtmlEncode = false for the column.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"et" <eagletender2001@xxxxxxxxx> wrote in message
news:OyPzpFOOHHA.2468@xxxxxxxxxxxxxxxxxxxxxxx
I have tried everything to display a bound column in a gridview to 2
decimals only. The column is a price, and when I run the query in sql, he
value displays as 10.00. Yet in the grid view it displays as 10.0000. I
have tried various settings in the dataformatstring, and it seems to ignore
everything I put there; I've tried: {0}, {0:F2}, {0:d}, {0:c}, among
others. What am I doing wrong?
.
- References:
- Gridview column formatting
- From: et
- Gridview column formatting
- Prev by Date: Re: Format Date in Databound column
- Next by Date: Re: Format Date in Databound column
- Previous by thread: Re: Gridview column formatting
- Next by thread: grid32.ocx and max Rows
- Index(es):
Relevant Pages
|
Loading