c# - Where can I find the meanings behind the different DataFormatStrings for asp.net mvc? -


i'm looking need format decimal don't have many trailing zeros. have far:

displayformat(dataformatstring="", applyformatineditmode = true)]

i'm seeing different ways of getting same result (formatting decimal is) using "{0:f3}" or "{0:n3}".

is there place can see different ways can format number? don't care if there or not difference between 2 examples have, i'm after is there 1 spot lists them , explains do? msdn documentation lacking quality examples , none of other answers i've stumbled upon points in specific direction formatting semantics.

everything right here, try searching in msdn first next time. https://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.boundfield.dataformatstring%28v=vs.110%29.aspx


Comments