Skip to content

Custom format for 0 is ignored #415

@GrahamTheCoder

Description

@GrahamTheCoder

Description

If I use custom format #,###;-#,###;- on a cell containing a 0, it should display -, but actually displays 0.

To Reproduce

  1. Set the custom format of a cell to #,###;-#,###;-
  2. Set the data value of that cell to 0
  3. Observe rendered cell

Pre-made spredsheet (made in recent excel version):
CustomFormatDashForZero.xlsx

_grid.Load(@"C:\path\to\CustomFormatDashForZero.xlsx", FileFormat._Auto);

Screenshots

Left: Excel
Right: Reogrid
image

Edition

Which edition of ReoGrid do you using?

  • WPF

Environment

  • OS: Windows 10
  • Language of OS: English

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions