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. Datagrid Edit Command To cause verticle expansion

Datagrid Edit Command To cause verticle expansion

Scheduled Pinned Locked Moved ASP.NET
cssdata-structurestutoriallearning
2 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
    bubberz
    wrote on last edited by
    #1

    I have a datagrid that has about 10 fields in it. The font size is a bit small, and when the user edits a row, it's a bit tough with the sizing....especially with the dropdownlist have field concatenation upon editing. We'd like to implement a datagrid that upon the Edit command, it expands vertically. So, instead of one row with all the fields from left to right, I might be able to have the columsn stack upon each other almost like five rows with two columns per row, or two rows with 5 columns. This way I can make the font size much larger and easier for the users to read. I know there are custom controls out there I've found in the past, but of course....can't find them with google searches. I don't mind trying to create my own custom control either...this is almost always the best way to learn. I just don't know how to change the grid row so all the fields change "Y" location. A little point in the right direction is appreciated. Thanks!

    M 1 Reply Last reply
    0
    • B bubberz

      I have a datagrid that has about 10 fields in it. The font size is a bit small, and when the user edits a row, it's a bit tough with the sizing....especially with the dropdownlist have field concatenation upon editing. We'd like to implement a datagrid that upon the Edit command, it expands vertically. So, instead of one row with all the fields from left to right, I might be able to have the columsn stack upon each other almost like five rows with two columns per row, or two rows with 5 columns. This way I can make the font size much larger and easier for the users to read. I know there are custom controls out there I've found in the past, but of course....can't find them with google searches. I don't mind trying to create my own custom control either...this is almost always the best way to learn. I just don't know how to change the grid row so all the fields change "Y" location. A little point in the right direction is appreciated. Thanks!

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      You might want to look for it in the ASP.NET control gallery[^]. IMO, it's more comlicated to customize the datagrid control in the way to want than the Repeater or DataList control. With the repeater or datalist cotnrol, you will be more flexible in editing the template of the row. Another way comes to mind is to implement a custom control whose functionality looks similar the DetailsView control in the ASP.NET 2.0. You basically use this custom control for editing the selected row.

      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