Solved

Silverlight 2.0 - Some of grid column need to align right

Posted on 2010-11-09
2
376 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

738 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