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
2725
format summary with commas
posted

I am trying to format a summary in webdatagrid with commas.

 

ie: total sales: 12345.6719   as 12,345.67

 

Gary

  • 7499
    posted

    Hello Gary,

     

    Please let me know if you have any further questions regarding this matter.

     

  • 7499
    Suggested Answer
    posted

    Hello Gary,

    You can format the value of the summary row using the formatstring property like below:

     <ig:SummaryRow FormatString="{0} = {1:##,#.00}">    

               <ColumnSummaries>     

       <ig:ColumnSummaryInfo ColumnKey="UnitPrice">   

          <Summaries>   

     <ig:Summary SummaryType="Sum" /> 

        </Summaries>  

     </ig:ColumnSummaryInfo>   

     </ColumnSummaries>

                                </ig:SummaryRow>

    Please let me know if you have any further questions regarding this matter.