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
665
I would like to have this format similar to $5,000 or 5,000 or 5,000.25
posted

I would like to have this format similar to $5,000 or 5,000 or 5,000.25 5/21/2010 11:16:34 AM
Hi
I'm working on a similar thing that's done in this link : http://help.infragistics.com/NetAdvantage/WinForms/Current/CLR2.0/?page=Infragistics2.Win.UltraWinGrid.v10.1~Infragistics.Win.UltraWinGrid.SummarySettings~DisplayFormat.html


If you look at the displayformat "Record Count = {0:#####}",  I would like to have this format similar to $5,000 or 5,000 or 5,000.25.
I tried "C0" didn't work. I couldn't find the best way to do it... and if there is a format that I could set up and get rid of the record count string in the summary that's fine with me.

Thanks

Parents
  • 665
    posted

    format summary 5/24/2010 7:13:26 AM
    Hi,

    I created a sample for you to show you how to format the summary.
    I created a table and then i have groupedBy the Price column.
    I then created 3 summary for the Total column to show you how to display $5,000 5,000 and 5,000.25

    As you will see i have added $ hard coded if you want to use the C you can do so by using :

    summary.DisplayFormat = "Total = {0:C0}";

    For more information about format strings you can refer to the following Msdn help article:
    http://msdn.microsoft.com/en-us/library/dwhawy9k.aspx#CFormatString



    Please have a look at my sample and let me know if it helps you.
    Thanks

Reply Children
No Data