Welcome Guest Search | Active Topics | Sign In | Register

DataColumn format Options
Marco
Posted: Tuesday, April 26, 2011 9:09:03 AM
Rank: Member
Groups: Member

Joined: 4/15/2011
Posts: 19
Hello,

i'm trying to set a static column format to a number with 2 decimal digits. I used this code:



Code: HTML/ASPX
<Columns>
       <eo:StaticColumn HeaderText="header" Name="column1" Width="45" DataFormat="{0:0.00}">
       </eo:StaticColumn>
</Columns>



But dataformat doesn't work, and i got a lot of decimal digits.
Can you help me?

Thanks
eo_support
Posted: Tuesday, April 26, 2011 9:53:12 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

For numbers, the Grid does not support custom format, it only supports standard numeric format strings such as {0:N5}, note the first letter of the format string is always a letter.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.