Solved

WPF DataGrid Column Alignment

Posted on 2011-03-15
2
1,435 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now