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
K

King_kLAx

@King_kLAx
About
Posts
2
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Display the Page.User.Identity.Name in the datagrid hyperlink column
    K King_kLAx

    I agree is the way to go Kind Regards Ian Claxton

    ASP.NET csharp help asp-net database sql-server

  • How to show file size in kb in dataGrid
    K King_kLAx

    Use a code behind method like this one - protected string FormatBytes(double bytes) { double gigabyte = 1024 * 1024 * 1024; double megabyte = 1024 * 1024; double kilobyte = 1024; if (bytes > gigabyte) { return string.Format("{0:#,###,###.00} GB", (bytes / gigabyte)); } else if (bytes > megabyte) { return string.Format("{0:#,###.00} MB", (bytes / megabyte)); } else if (bytes > kilobyte) { return string.Format("{0:#,###.00} KB", (bytes / kilobyte)); } else { return string.Format("{0:#,###} B", bytes); } } Then on your column item template use somthing like this - This should do the trick! Kind Regards Ian Claxton C# is for life not just for christmas

    ASP.NET tutorial question
  • Login

  • Don't have an account? Register

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