Solved

WPF DataGrid Column Alignment

Posted on 2011-03-15
2
1,448 Views
Last Modified: 2013-12-17
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
Comment
Question by:Thomasian
2 Comments
 
LVL 13

Expert Comment

by:agarwalrahul
ID: 35136030
Please check the following link:

http://www.c-sharpcorner.com/UploadFile/mahesh/49/
0
 
LVL 11

Accepted Solution

by:
Deepak Lakkad earned 500 total points
ID: 35136035
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question