Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Formatting Decimals in a DataGridView

Formatting Decimals in a DataGridView

Scheduled Pinned Locked Moved C#
csshelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jasper018
    wrote on last edited by
    #1

    Hello, I have a data grid view with a column that contains decimals.. (eg. 12345.67890) I Would like to format the data grid view to only show two decimal places. (eg. 12345.67) Any help would be great! J

    G 1 Reply Last reply
    0
    • J jasper018

      Hello, I have a data grid view with a column that contains decimals.. (eg. 12345.67890) I Would like to format the data grid view to only show two decimal places. (eg. 12345.67) Any help would be great! J

      G Offline
      G Offline
      Giorgi Dalakishvili
      wrote on last edited by
      #2

      This link will help you: Cell Styles in the Windows Forms DataGridView Control[^]

      #region signature my articles #endregion

      J 1 Reply Last reply
      0
      • G Giorgi Dalakishvili

        This link will help you: Cell Styles in the Windows Forms DataGridView Control[^]

        #region signature my articles #endregion

        J Offline
        J Offline
        jasper018
        wrote on last edited by
        #3

        Thank you!

        G 1 Reply Last reply
        0
        • J jasper018

          Thank you!

          G Offline
          G Offline
          Giorgi Dalakishvili
          wrote on last edited by
          #4

          You are welcome :)

          #region signature my articles #endregion

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups