Formatting Double Value
In wpf , how can I formatting datagridcolumns for double value by code behind?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
dinesh kumarPosted Apr 23, 2015, 12:28 AM
DTCol.Header = "xxyy";
DTCol.Binding = new Binding("xxyy");
DTCol.Bindgin.StringFormat = "{0:0.00}";
here you can use n number of double formats according to your requirement , here i have used two digit values.
check this for more MSDN format key words.
https://msdn.microsoft.com/en-us/library/dwhawy9k%28v=vs.110%29.aspx
If this helps please UPVote it.
Regards
DK