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. Web Development
  3. ASP.NET
  4. how to format a string in the templatecolumn

how to format a string in the templatecolumn

Scheduled Pinned Locked Moved ASP.NET
tutorial
4 Posts 3 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.
  • K Offline
    K Offline
    kpsetty
    wrote on last edited by
    #1

    hi friends, i don't know how to format a templatecolumn. this is a number column, i ahve show this with commas and two digits after decimal.

    C 1 Reply Last reply
    0
    • K kpsetty

      hi friends, i don't know how to format a templatecolumn. this is a number column, i ahve show this with commas and two digits after decimal.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I assume this is a template in a datagrid or similar control ? You can use string.Format, or any code you'd like, within the brackets where your databinding expression goes. Christian Graus - Microsoft MVP - C++

      K 1 Reply Last reply
      0
      • C Christian Graus

        I assume this is a template in a datagrid or similar control ? You can use string.Format, or any code you'd like, within the brackets where your databinding expression goes. Christian Graus - Microsoft MVP - C++

        K Offline
        K Offline
        kpsetty
        wrote on last edited by
        #3

        hi graus, thanks for ur reply, the below coding is i am using.i had used "Formatstring" method to format the column. but it gives error. -- modified at 5:10 Tuesday 30th August, 2005

        S 1 Reply Last reply
        0
        • K kpsetty

          hi graus, thanks for ur reply, the below coding is i am using.i had used "Formatstring" method to format the column. but it gives error. -- modified at 5:10 Tuesday 30th August, 2005

          S Offline
          S Offline
          Sebastien Lachance
          wrote on last edited by
          #4

          Can you post the error message ?

          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