• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1498
  • Last Modified:

WPF DataGrid Column Alignment

I need to change the alignment of a datagrid column to right.

The following link (which works) shows what I need to do.
http://stackoverflow.com/questions/720732/column-aligment-in-wpf-datagrid#720824

But the code is in XAML. I need to do it in C# or VB since I will be adding the columns at runtime.

Thanks
0
Thomasian
Asked:
Thomasian
1 Solution
 
Rahul AgarwalTeam LeaderCommented:
Please check the following link:

http://www.c-sharpcorner.com/UploadFile/mahesh/49/
0
 
Deepak LakkadCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now