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. Format Columns in DataGrid Edit Mode

Format Columns in DataGrid Edit Mode

Scheduled Pinned Locked Moved ASP.NET
question
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.
  • C Offline
    C Offline
    Charles Banks
    wrote on last edited by
    #1

    If this has been asked before, I apoligies. I have a datagrid with 7 columns which I have set column sizes on. When I go into edit mode all the columns "choose" their own format based of the data in each column. How do I set the column width (or maintain) when I go into edit? Thanks Charles

    S 1 Reply Last reply
    0
    • C Charles Banks

      If this has been asked before, I apoligies. I have a datagrid with 7 columns which I have set column sizes on. When I go into edit mode all the columns "choose" their own format based of the data in each column. How do I set the column width (or maintain) when I go into edit? Thanks Charles

      S Offline
      S Offline
      siva pinnaka
      wrote on last edited by
      #2

      one way is using templateitems. Thanks

      C 1 Reply Last reply
      0
      • S siva pinnaka

        one way is using templateitems. Thanks

        C Offline
        C Offline
        Charles Banks
        wrote on last edited by
        #3

        Thanks for the quick response! Funny you should mention the use of templates, because I just setup my second datagrid which only has templates. I did not see that when you edit a template you could set attributes just like any control (I thought it was all done via the Property Builder. I set my widths and it worked! Thanks Charles

        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