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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to enable AutoGenerateDeleteButton on only specific rows of a gridview depending on the value of data key in C#

how to enable AutoGenerateDeleteButton on only specific rows of a gridview depending on the value of data key in C#

Scheduled Pinned Locked Moved ASP.NET
questioncsharphelptutorial
4 Posts 3 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.
  • J Offline
    J Offline
    jokerkachotabhai
    wrote on last edited by
    #1

    I have developed an website for forums i want to that users who has replied to a question are also able to delete their replies how can I achieve that plz help!!!

    N 1 Reply Last reply
    0
    • J jokerkachotabhai

      I have developed an website for forums i want to that users who has replied to a question are also able to delete their replies how can I achieve that plz help!!!

      N Offline
      N Offline
      nainakarri
      wrote on last edited by
      #2

      u can make the delete button either invisible/disable on rowdatabound event. Get the id of delete column and check for the the validation which u want to give and disable it. Naina

      J 1 Reply Last reply
      0
      • N nainakarri

        u can make the delete button either invisible/disable on rowdatabound event. Get the id of delete column and check for the the validation which u want to give and disable it. Naina

        J Offline
        J Offline
        jokerkachotabhai
        wrote on last edited by
        #3

        I am not using any static button control I am using AutoGenrateDeleteButton property of Grid view

        V 1 Reply Last reply
        0
        • J jokerkachotabhai

          I am not using any static button control I am using AutoGenrateDeleteButton property of Grid view

          V Offline
          V Offline
          vinodkrebc
          wrote on last edited by
          #4

          This property also create a link and then you can find it on run time and then set it disable and enable as per your requirement............. Thank You Vinod Kr.

          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