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. Need Help with Gridview RowState.

Need Help with Gridview RowState.

Scheduled Pinned Locked Moved ASP.NET
csshelpquestion
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.
  • X Offline
    X Offline
    xiao bin bin
    wrote on last edited by
    #1

    Hello, there, I'd like to know how I can change the rowState in GridView. I want to set every row to the edit state when open the gridview control. I made changes to rowCreated function of the grid view to change every datarow to the Edit state. But the it is not working at all. The following are the code. If (e.Row.RowType = DataControlRowType.DataRow) Then e.Row.RowState = DataControlRowState.Edit End If Will you please tell me what I should do to make it happen? Thank you so much in advance.

    B 1 Reply Last reply
    0
    • X xiao bin bin

      Hello, there, I'd like to know how I can change the rowState in GridView. I want to set every row to the edit state when open the gridview control. I made changes to rowCreated function of the grid view to change every datarow to the Edit state. But the it is not working at all. The following are the code. If (e.Row.RowType = DataControlRowType.DataRow) Then e.Row.RowState = DataControlRowState.Edit End If Will you please tell me what I should do to make it happen? Thank you so much in advance.

      B Offline
      B Offline
      bayo
      wrote on last edited by
      #2

      Haven't tried this but if you want your gridview to be in the edit state by default, why not use use template columns and textboxes for your itemtemplates? sounds like a silly hack but...

      acodeisacodeisacode

      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