Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
ItemTemplate TextBox Formatting
posted

I have my Order amount value is 89999.75, I wanted to display this value as 89,999.75 with TextBox in ItemTemplate
It is a decimal value in my database and dataobject.

How can I display the value in above format ? Thanks in advance for your help

Here is my xaml

 

 

 

 

 

 

 

 

 

 

 

 

<

 

 

ig:TemplateColumn Key="OrderAmount" HeaderText="Order Amount" HeaderTextHorizontalAlignment="Center" HorizontalContentAlignment="Right" MinimumWidth="184" IsSummable="False">

<

 

 

ig:TemplateColumn.ItemTemplate>

<

 

 

DataTemplate>

<

 

 

TextBox Text="{Binding OrderAmount, Mode=OneWay, NotifyOnValidationError=True, ValidatesOnDataErrors=True, ValidatesOnExceptions=True}"

 

 

 

 

BorderThickness="0"

 

 

 

 

Background="{Binding}"

 

 

 

 

IsReadOnly="True"

 

 

 

 

Style="{StaticResource ReadOnlyStyle}"/>

</

 

 

DataTemplate>

</

 

 

ig:TemplateColumn.ItemTemplate>

</

 

 

ig:TemplateColumn>

Thanks & Regards

Sayap

Parents
No Data
Reply Children
No Data