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. Conditional Editing in Grid View

Conditional Editing in Grid View

Scheduled Pinned Locked Moved ASP.NET
css
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
    mharoonkhan
    wrote on last edited by
    #1

    Hi, I have a gridView with a colunm Adress-A SiteName-A ServiceType-A Address-B SiteName-B ServiceType-B Edit-A Edit-B it could be possible, if i click on Edit-A only the fields (Adress-A SiteName-A ServiceType-A) shown in edit mode and when i click on Edit-B the field (Address-B SiteName-B ServiceType-B) will show in edit mode in a grid.

    KnightGuy

    J 1 Reply Last reply
    0
    • M mharoonkhan

      Hi, I have a gridView with a colunm Adress-A SiteName-A ServiceType-A Address-B SiteName-B ServiceType-B Edit-A Edit-B it could be possible, if i click on Edit-A only the fields (Adress-A SiteName-A ServiceType-A) shown in edit mode and when i click on Edit-B the field (Address-B SiteName-B ServiceType-B) will show in edit mode in a grid.

      KnightGuy

      J Offline
      J Offline
      JamieRushton_
      wrote on last edited by
      #2

      In the ItemCommand event find out which button was clicked by using the CommandArgument attr. This could then fire a switch to choose the correct method (SetupFormA, SetupFormB) for looping thru the GridView so you can find and changing the the form fields required. I haven't tired this myself but that's how I would go about it to start with.

      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