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. how to format datagrid data in to decimal numbers

how to format datagrid data in to decimal numbers

Scheduled Pinned Locked Moved C#
csharptutorial
2 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.
  • M Offline
    M Offline
    Mamphekgo
    wrote on last edited by
    #1

    I am trying to format datagrid data in C# using windows applications but i cannot get it right.I want to display something like this 4.20 but it gives me 4,2000 in my datagrid.

    V 1 Reply Last reply
    0
    • M Mamphekgo

      I am trying to format datagrid data in C# using windows applications but i cannot get it right.I want to display something like this 4.20 but it gives me 4,2000 in my datagrid.

      V Offline
      V Offline
      VMSSanthosh
      wrote on last edited by
      #2

      i think u want to display in 1000's, 10000's format of ur currency is it?... if its the case means u can't format it by datagrid format options u have to divide it by 1000 or 10000 like that only and then u can format the string by stringvalue.tostring("n2") VMSSanthosh

      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