|
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
|
|
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!
|
|
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.
|
|
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?
|
|