protected new void PrepareTextCell() { HeaderStyle.AssignToControl(TextCell, AttributesRange.Font); HeaderStyle.AssignToControl(TextCell, AttributesRange.Cell); RenderUtils.SetPaddings(TextCell, HeaderStyle.Paddings); if (NewButtonControl != null) { TextCell.HorizontalAlign = HorizontalAlign.Center; } if (Location == GridViewHeaderLocation.Group) { if (Grid.GroupPanelHeaderNoWrap) { RenderUtils.SetWrap(TextCell, DefaultBoolean.False); } if (HeaderStyle.Paddings.GetPaddingLeft().IsEmpty) { RenderUtils.SetStyleUnitAttribute(TextCell, "padding-left", Unit.Pixel(1)); } } if (Location == GridViewHeaderLocation.Customization) { var horizontalAlign = RenderHelper.GetCustomizationWindowContentStyle().HorizontalAlign; if (horizontalAlign != HorizontalAlign.NotSet) { RenderUtils.SetHorizontalAlign(TextCell, horizontalAlign); } } }