• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1486
  • 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

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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