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. Help with GridView

Help with GridView

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabaseperformancehelp
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.
  • M Offline
    M Offline
    Maqsood Ahmed
    wrote on last edited by
    #1

    Hello, I am new to ASP.net 2.0. I have successfully bound a in-memory DataTable (not connected with a database) with GridView. I have set AutoGenerateEditButton property to true. Now whenever i click on Edit link, the page does postback, but the row does not become editable. I have also tried GridView1.Rows[e.NewEditIndex].RowState = DataControlRowState.Edit; in RowEditing event handler. Am I missing something? Thanks in advance. Maqsood Ahmed - MCAD.net Kolachi Advanced Technologies http://www.kolachi.net

    M 1 Reply Last reply
    0
    • M Maqsood Ahmed

      Hello, I am new to ASP.net 2.0. I have successfully bound a in-memory DataTable (not connected with a database) with GridView. I have set AutoGenerateEditButton property to true. Now whenever i click on Edit link, the page does postback, but the row does not become editable. I have also tried GridView1.Rows[e.NewEditIndex].RowState = DataControlRowState.Edit; in RowEditing event handler. Am I missing something? Thanks in advance. Maqsood Ahmed - MCAD.net Kolachi Advanced Technologies http://www.kolachi.net

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Try setting GridView1.EditIndex property to e.NewEditIndex in the RowEditing event. Typically this assignment is made automatically, but maybe you have to explicitly set it given the data source you're using? (I'm making a guess on that)

      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