What is the best practice to format numerics in a grid cell when a style template is used ?
Format = "P2" and Format = "C2" don't work once a color style is applied.
|
<SfGrid DataSource="@Orders" AllowPaging="true">
<GridColumns>
<Template>
@{
var changeData = (context as Share);
if (changeData.Change > 0)
{
<span class="up"> @changeData.Change.ToString("P2")</span>
}
else
{
if (changeData.Change < 0)
{
<span class="down"> @changeData.Change.ToString("P2")</span>
}
else
{
@changeData.Change
}
}
}
</Template>
</GridColumn>
</GridColumns>
</SfGrid> |
|
|
Thanks very much !
Thanks for this information. I want to establish a business in investment, but I don't know much about it. I also need a business plan to launch this venture, so I went online to hunt for one and found the resource totimes.ca/how-to-write-a-business-plan-for-investors/, which can help me writing a business plan for investors.