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. Gridview dynamic in edit mode

Gridview dynamic in edit mode

Scheduled Pinned Locked Moved ASP.NET
database
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.
  • A Offline
    A Offline
    amina89
    wrote on last edited by
    #1

    Hi, I have a gridview which I dont know the number of columns it is created by a dynamic query and AutoGenerateColumns = true. I need to put the columns of the gridview in editable mode except the first one for insert the data typed into the database. Thanks.

    S 1 Reply Last reply
    0
    • A amina89

      Hi, I have a gridview which I dont know the number of columns it is created by a dynamic query and AutoGenerateColumns = true. I need to put the columns of the gridview in editable mode except the first one for insert the data typed into the database. Thanks.

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      amina89 wrote:

      I need to put the columns of the gridview in editable mode except the first one for insert the data typed into the database.

      Are you trying to ask that you want first row normal and rest of them in editable mode? If so, probably you need to use the RowDataBound event where trap the first row and show it as is and rest of the rows in a Edit mode.

      A 1 Reply Last reply
      0
      • S Sandeep Mewara

        amina89 wrote:

        I need to put the columns of the gridview in editable mode except the first one for insert the data typed into the database.

        Are you trying to ask that you want first row normal and rest of them in editable mode? If so, probably you need to use the RowDataBound event where trap the first row and show it as is and rest of the rows in a Edit mode.

        A Offline
        A Offline
        amina89
        wrote on last edited by
        #3

        Hi, I want to use a gridview to insert student grades for a module (total area unknown) for this i use a dynamic query and I display the gridview Number students ___subject 1____subject2 ....( subjects of a module) but I can not put the gridview in edit mode ,how do that? I searched on google but most of the gridview it already knows the number of column so we do not use autogenratecolumn=true which facilitates edit mode and insert the gridview data in the database. 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