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 edit problem

Gridview edit problem

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

    hai all, I have a gridview having edit button for updating a single column in my grid. Suppose i have 10 rows and having 3 columns.I am updtin 3rd column only. per row the 3rd column shd be unique. I want to check if the data exists for that column already if i click on edit button it shd not change into updatecancel. How to check the data" Here is my code for filling and updating kissy

    L 1 Reply Last reply
    0
    • K Kissy16

      hai all, I have a gridview having edit button for updating a single column in my grid. Suppose i have 10 rows and having 3 columns.I am updtin 3rd column only. per row the 3rd column shd be unique. I want to check if the data exists for that column already if i click on edit button it shd not change into updatecancel. How to check the data" Here is my code for filling and updating kissy

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      There is no any in-built functionality to check the duplication at the time of updating row. On GridView1_RowUpdating event when you try to update your data to database, you need to check the duplication manually. So if there is duplication, you can simply avoid update and give proper message or take action accordingly. From following link you will get an idea. http://www.aspdotnetcodes.com/GridView_Insert_Edit_Update_Delete.aspx[^] Hope this will help!

      Jinal Desai - LIVE Experience is mother of sage....

      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