Solved

Silverlight 2.0 - Some of grid column need to align right

Posted on 2010-11-09
2
345 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
2 Comments
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 50 total points
Comment Utility
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
Comment Utility
Thanks.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and 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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

771 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

14 Experts available now in Live!

Get 1:1 Help Now