|
Rank: Member Groups: Member
Joined: 11/13/2014 Posts: 15
|
Hello .. I am looking for a VERY SIMPLE way to align my numeric field TO THE RIGHT in their cells. Columns are defined DataType="Integer" and have their DataFormat="{0:N2} I just want them to align RIGHT
gollnick
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi, The easiest way is to use CellStyle. For example, in the EOWebDemo application, in Demos/Grid/Design/Style1, you can change the "Posted At" column to right align by changing:
Code: HTML/ASPX
<eo:StaticColumn HeaderText="Posted By" DataField="PostedBy" ></eo:StaticColumn>
To:
Code: HTML/ASPX
<eo:StaticColumn HeaderText="Posted By" DataField="PostedBy" >
<CellStyle CssText="text-align:right" />
</eo:StaticColumn>
Note that the additional CellStyle attribute added. Thanks!
|
|
Rank: Member Groups: Member
Joined: 11/13/2014 Posts: 15
|
Thank you. How do you close this?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Close what?
|
|
Rank: Member Groups: Member
Joined: 11/13/2014 Posts: 15
|
This topic. Case closed
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Oh. You can just leave it. :)
|
|