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. Sizing the DataGrid columns?

Sizing the DataGrid columns?

Scheduled Pinned Locked Moved ASP.NET
helpquestion
3 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.
  • B Offline
    B Offline
    Blue_Skye
    wrote on last edited by
    #1

    Is there an easy way to size each column in the DataGrid? I tried to set it in Property Builder -> Format but it's too annoying. It is too difficult to measure the width you need in each column into pixel, besides if i change the width of one column, others is changed too. Can someone help me, please. Thanks!

    J 1 Reply Last reply
    0
    • B Blue_Skye

      Is there an easy way to size each column in the DataGrid? I tried to set it in Property Builder -> Format but it's too annoying. It is too difficult to measure the width you need in each column into pixel, besides if i change the width of one column, others is changed too. Can someone help me, please. Thanks!

      J Offline
      J Offline
      jinnyb
      wrote on last edited by
      #2

      Hey use these tag in the html I would adivice to use percent instead of pixels make sure that the datagrid is in the table tag and the set the width of that table according to ur need and also set the width of data grid in the acc to ur need i shall advice u to keep 100% for better results Hope these will solve ur problem Thanks Regards Jinny Patel Neelesh A

      B 1 Reply Last reply
      0
      • J jinnyb

        Hey use these tag in the html I would adivice to use percent instead of pixels make sure that the datagrid is in the table tag and the set the width of that table according to ur need and also set the width of data grid in the acc to ur need i shall advice u to keep 100% for better results Hope these will solve ur problem Thanks Regards Jinny Patel Neelesh A

        B Offline
        B Offline
        Blue_Skye
        wrote on last edited by
        #3

        I'll try your solution. Thanks! :)

        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