public void AddTextColumn(string bindingName,string headerText,int widthPercent,Style style = null)
{
FrameworkElementFactory ef = new FrameworkElementFactory(typeof(TextBlock));
ef.SetValue(TextBlock.TextWrappingProperty, TextWrapping.Wrap);
ef.SetValue(TextBlock.TextAlignmentProperty, TextAlignment.Center);
ef.SetValue(TextBlock.VerticalAlignmentProperty, VerticalAlignment.Center);
ef.SetValue(TextBlock.TextProperty, new Binding(bindingName));
AddColumn(ef, widthPercent, headerText, bindingName, style);
}