Hi,
I use Q1 2009 SP1.
I tried to set my column like this
Or like this
But each time, my text in the cell is on the left. what happend?
Best regards,
Fabien
I use Q1 2009 SP1.
I tried to set my column like this
| // Percent |
| GridViewDecimalColumn Percent_Column = new GridViewDecimalColumn("Percent", "Percent") |
| { |
| HeaderText = "Percent", |
| HeaderTextAlignment = ContentAlignment.MiddleCenter, |
| FormatString = "{0:N1} %", |
| DataType = typeof(decimal), |
| TextAlignment = ContentAlignment.MiddleRight, |
| DecimalPlaces = 1, |
| ThousandsSeparator = true, |
| WrapText = false, |
| ShowUpDownButtons = false, |
| StretchVertically = false |
| }; |
| pRadGridView.MasterGridViewTemplate.Columns.Add(Percent_Column); |
Or like this
| // Percent |
| GridViewDecimalColumn Percent_Column = new GridViewDecimalColumn("Percent", "Percent") |
| { |
| HeaderText = "Percent", |
| HeaderTextAlignment = ContentAlignment.MiddleCenter, |
| FormatString = "{0:N1} %", |
| DataType = typeof(decimal), |
| TextAlignment = ContentAlignment.MiddleRight, |
| DecimalPlaces = 1, |
| ThousandsSeparator = true |
| }; |
| pRadGridView.MasterGridViewTemplate.Columns.Add(Percent_Column); |
But each time, my text in the cell is on the left. what happend?
Best regards,
Fabien