Zero replaced in series ItemToolTipFormat

2 posts, 0 answers
  1. AdrianP
    AdrianP avatar
    22 posts
    Member since:
    Nov 2007

    Posted 07 Feb 2012 Link to this post

    Hello,
    
    I have a problem with the ItemToolTipFormat from SeriesDefinition: the format is loaded dynamically from
    database, and some of the formats contain zero. The problem is that zero is always replaced by the Y value,
    being treated as a placeholder. How can I enter zero in the tooltipformat and prevent the automatic
    replace?
    
    Here's my code: seriesMapping.SeriesDefinition.ItemToolTipFormat = string.Format("{0}", col["Description"].ToString()); Thank you, Adrian
  2. AdrianP
    AdrianP avatar
    22 posts
    Member since:
    Nov 2007

    Posted 07 Feb 2012 Link to this post

    I found the solution, to escape the zero:

      seriesMapping.SeriesDefinition.ItemToolTipFormat = string.Format("{0}", col["Description"].ToString().Replace("0","\\0"));


    Thank you, you can consider the thread closed.
    Adrian


  3. DevCraft banner
Back to Top