Create Code

http://social.msdn.microsoft.com/Forums/vstudio/en-US/50e8bf71-a70f-4459-8537-c47193621341/datagridcell-horizontalcontentalignment-is-not-working?forum=wpf

Since the default template of the DataGridCell is not a single content control that can align the content by the HorizontalContentAlignment property. It is a Border control which contains a ContentPresenter: