Solved

Silverlight 2.0 - Some of grid column need to align right

Posted on 2010-11-09
2
381 Views
Last Modified: 2013-11-07
Hi all,

I am working on silverlight 2.0.In my application i have used grid and it has following column but i want to start the value from right side so can i know which property i need to use or do i need to change the code...

 <data:DataGridTextColumn Binding="{Binding ItemCode, Mode=OneWay}" IsReadOnly="True"

BOB
0
Comment
Question by:BOBCOLIN
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 50 total points
ID: 34092365
I think you need to do something like:


<data:DataGridTextColumn Binding="{Binding ItemCode, Mode=OneWay}" IsReadOnly="True">
   <data:DataGridTextColumn.ElementStyle>
      <Style TargetType="TextBlock">
         <Setter Property="TextAlignment" Value="Right" />
      </Style>
   </data:DataGridTextColumn.ElementStyle>
</data:DataGridTextColumn>

Open in new window

0
 

Author Closing Comment

by:BOBCOLIN
ID: 34092400
Thanks.
0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

707 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