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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Gridview column width

Gridview column width

Scheduled Pinned Locked Moved ASP.NET
jsonhelpquestion
4 Posts 4 Posters 1 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.
  • C Offline
    C Offline
    Christer Claesson
    wrote on last edited by
    #1

    Hello there I have a DataGrid with the width set as 100% and several individual ItemTemplates controlstyles width set to a fixed size in px. Now I want to set the last one to fill out the rest of the space. I thought the syntax for that was * however that does not work and I fail at google at the moment. Anyone have any ideas? Thank you for your help.

    E M S 3 Replies Last reply
    0
    • C Christer Claesson

      Hello there I have a DataGrid with the width set as 100% and several individual ItemTemplates controlstyles width set to a fixed size in px. Now I want to set the last one to fill out the rest of the space. I thought the syntax for that was * however that does not work and I fail at google at the moment. Anyone have any ideas? Thank you for your help.

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      IMO, set the last one to 100% as well... << >>

      8x Solutions Ltd

      1 Reply Last reply
      0
      • C Christer Claesson

        Hello there I have a DataGrid with the width set as 100% and several individual ItemTemplates controlstyles width set to a fixed size in px. Now I want to set the last one to fill out the rest of the space. I thought the syntax for that was * however that does not work and I fail at google at the moment. Anyone have any ideas? Thank you for your help.

        M Offline
        M Offline
        mareers
        wrote on last edited by
        #3

        Don't set width for the last column. think it'll automatically fits into the remaining space...if the earlier columns are of fixed width.

        mareers

        1 Reply Last reply
        0
        • C Christer Claesson

          Hello there I have a DataGrid with the width set as 100% and several individual ItemTemplates controlstyles width set to a fixed size in px. Now I want to set the last one to fill out the rest of the space. I thought the syntax for that was * however that does not work and I fail at google at the moment. Anyone have any ideas? Thank you for your help.

          S Offline
          S Offline
          Spunky Coder
          wrote on last edited by
          #4

          Don't specify any width for that...i think it will fill out with rest of the space or else try with width=100% for that column

          Koushik

          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