Click here to Skip to main content
15,902,198 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
AlphaDeltaTheta19-May-13 14:51
AlphaDeltaTheta19-May-13 14:51 
GeneralRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
jockey4her19-May-13 15:42
jockey4her19-May-13 15:42 
GeneralRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
AlphaDeltaTheta19-May-13 16:08
AlphaDeltaTheta19-May-13 16:08 
GeneralRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
jockey4her19-May-13 17:07
jockey4her19-May-13 17:07 
GeneralRe: Databinding a ListBox using MVVM light (Windows Phone) Pin
AlphaDeltaTheta20-May-13 15:08
AlphaDeltaTheta20-May-13 15:08 
QuestionWPF datagrid text alignment in columns Pin
elelont216-May-13 23:53
elelont216-May-13 23:53 
AnswerRe: WPF datagrid text alignment in columns Pin
Pete O'Hanlon17-May-13 0:33
mvePete O'Hanlon17-May-13 0:33 
GeneralRe: WPF datagrid text alignment in columns Pin
elelont217-May-13 2:16
elelont217-May-13 2:16 
Hi and thanks for the reply.

Unfortunately that did not do the trick. The column headers are hidden so i do not need to right-align them.

Basically the datagrid has two columns of data. I need the DATA in ONE of the columns to be right aligned.

I tried this:

HTML
<Style TargetType="DataGrid">
       <Setter Property="CellStyle">
           <Setter.Value>
               <Style TargetType="DataGridCell">
                   <Setter Property="HorizontalAlignment" Value="Right"/>
               </Style>
           </Setter.Value>
       </Setter>
   </Style>



but that just plain righ-aligns everything in the datagrid (data in column 1 and in column 2). Is it possible to apply this to column 2 only?

Note that i do not have the column definitions in my xaml since the datagrid is populated via a binding.

Thanks
GeneralRe: WPF datagrid text alignment in columns Pin
Pete O'Hanlon17-May-13 2:31
mvePete O'Hanlon17-May-13 2:31 
QuestionNew Table to an existing Silverlight project Pin
picasso216-May-13 19:36
picasso216-May-13 19:36 
QuestionWPF motion path animation on controls Pin
usmankai16-May-13 14:10
usmankai16-May-13 14:10 
QuestionMust compile XAML file that specifies events Pin
Neo1010115-May-13 23:29
Neo1010115-May-13 23:29 
AnswerRe: Must compile XAML file that specifies events Pin
AlphaDeltaTheta18-May-13 16:42
AlphaDeltaTheta18-May-13 16:42 
GeneralRe: Must compile XAML file that specifies events Pin
Neo1010119-May-13 4:23
Neo1010119-May-13 4:23 
GeneralRe: Must compile XAML file that specifies events Pin
AlphaDeltaTheta19-May-13 14:48
AlphaDeltaTheta19-May-13 14:48 
QuestionIs Frame is a good Control for loading a Xaml page in WPF? Pin
Mohammed Hameed14-May-13 19:53
professionalMohammed Hameed14-May-13 19:53 
AnswerRe: Is Frame is a good Control for loading a Xaml page in WPF? Pin
Abhinav S15-May-13 8:12
Abhinav S15-May-13 8:12 
GeneralRe: Is Frame is a good Control for loading a Xaml page in WPF? Pin
Mohammed Hameed15-May-13 19:28
professionalMohammed Hameed15-May-13 19:28 
QuestionTreeViewDragDropTarget Drag Certain Node Only Pin
Member 1003315714-May-13 19:52
Member 1003315714-May-13 19:52 
QuestionWPF / MVVM Get Data From ViewModel Pin
Kevin Marois14-May-13 15:10
professionalKevin Marois14-May-13 15:10 
AnswerRe: WPF / MVVM Get Data From ViewModel Pin
SledgeHammer0115-May-13 6:57
SledgeHammer0115-May-13 6:57 
GeneralRe: WPF / MVVM Get Data From ViewModel Pin
Kevin Marois15-May-13 7:54
professionalKevin Marois15-May-13 7:54 
GeneralRe: WPF / MVVM Get Data From ViewModel Pin
SledgeHammer0115-May-13 8:41
SledgeHammer0115-May-13 8:41 
GeneralRe: WPF / MVVM Get Data From ViewModel Pin
Kevin Marois15-May-13 9:00
professionalKevin Marois15-May-13 9:00 
GeneralRe: WPF / MVVM Get Data From ViewModel Pin
Kevin Marois20-May-13 14:00
professionalKevin Marois20-May-13 14:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.