Last Updated: 27 Jan 2021 13:53 by ADMIN
Release LIB 2021.1.201
Martin Ivanov
Created on: 18 Jan 2021 07:30
Category: GridView
Type: Bug Report
GridView: Runtime change of GridViewExpressionColumn's TextAlignment is not a applied to the cells

Changing the TextAlignment property of the GridViewExpressionColumn doesn't refresh the cells, thus the change is not visible in the UI.

To work this around, remove and add again the corresponding column in the Columns collection of RadGridView. Or define a CellTemplate and use a TextBlock control with its TextAlignment bound to the column's property.

		<TextBlock Text="{Binding}" 
				   TextAlignment="{Binding RelativeSource={RelativeSource AncestorType=telerik:GridViewCell}, Path=Column.TextAlignment}"  />