Solved

Silverlight 2.0 - Some of grid column need to align right

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

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

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 tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

773 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