Welcome Guest Search | Active Topics | Sign In | Register

Numeric Column with 2 Decimals Options
Manjiri
Posted: Saturday, March 31, 2012 4:25:30 AM
Rank: Member
Groups: Member

Joined: 1/10/2011
Posts: 12
hello,

i m using licensed EO Grid. my queris are:
1. how can i set a numeric column in grid to display 2 decimal places?
2. how can i set numeric column sright aligned in grid?

awaiting ur reply.

thanks & regards,
-Manjiri
eo_support
Posted: Saturday, March 31, 2012 11:43:28 AM
Rank: Administration
Groups: Administration

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

I am not sure what type of column you use for your numeric values. If you just use StaticColumn to display numeric values, you can set the column's DataFormat to something like "{0:N2}" to set it display 2 decimal digits. To right align contents in a cell, you can apply "text-align:right" on the column's CellStyle.

Thanks!
Sergio
Posted: Friday, July 27, 2012 9:57:12 PM
Rank: Member
Groups: Member

Joined: 3/30/2011
Posts: 16
Hello,

I have similar question about right align, but if in my grid I have 5 columns and I only need rigth align in one of them, the others four left align, how can I do that??? because with cellstyle rigth align is for all cells.

thank you.
eo_support
Posted: Saturday, July 28, 2012 9:30:32 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Sergio wrote:
because with cellstyle rigth align is for all cells.


I am not sure if I understood your question. CellStyle right align is for all cells. But you only want the columns to be different. What does that have to do with cells?


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.