?
Solved

Silverlight 2.0 - Some of grid column need to align right

Posted on 2010-11-09
2
Medium Priority
?
390 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 150 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

770 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