This is a migrated thread and some comments may be shown as answers.

Column Center-Right Align Content

1 Answer 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 19 Dec 2013, 09:53 PM
Hi All,

I have a GridBoundColumn with numbers in it.  Is it at all possible to center the numbers in the column, but right align them, so that the are all lined up, down the column?  For example the decimal place of each number is in the same spot regardless of the overall length of the number.

Thanks,
Mark

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 Dec 2013, 05:10 AM
Hi Mark,

You can right align the numbers using the ItemStyle property of the column.

ASPX:
<telerik:GridBoundColumn DataField="UnitPrice" HeaderText="UnitPrice" UniqueName="UnitPrice">
    <ItemStyle HorizontalAlign="Right" />
</telerik:GridBoundColumn>

Thanks,
Shinu
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or