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. Identify parent control from child control

Identify parent control from child control

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

    Hi all, I have a gridview (say Agenda )which has several databound fields and a template field the template field has a linkbutton and a gridview (say AgendaItem). inner gridview (agendaItem)is poulated at the time of datarowbound event of outer gridview (Agenda) I want to delete AgendaItems from a row of Agenda by clicking the linkbutton. but how can I identify agendaItem gridview of respective row of agenda gridview. Remember that I am just clicking the Linkbutton of a row of Agenda gridview. ========= If I can identify the Agenda grid row by clicking the templated linkbutton then I can do the rest. thanks

    F 1 Reply Last reply
    0
    • M mmdullah

      Hi all, I have a gridview (say Agenda )which has several databound fields and a template field the template field has a linkbutton and a gridview (say AgendaItem). inner gridview (agendaItem)is poulated at the time of datarowbound event of outer gridview (Agenda) I want to delete AgendaItems from a row of Agenda by clicking the linkbutton. but how can I identify agendaItem gridview of respective row of agenda gridview. Remember that I am just clicking the Linkbutton of a row of Agenda gridview. ========= If I can identify the Agenda grid row by clicking the templated linkbutton then I can do the rest. thanks

      F Offline
      F Offline
      FEMDEV
      wrote on last edited by
      #2

      hmm.. Since the agendaitem is populated at the time of datarowbound of Agenda, u can identify the row for inneragenda when the link button is clicked. U can then use the same relation as at the time of binding data to delete the data from the database and then rebind the two gridviews. I know this can be resource extensive if u have several clicks per user as per ur application . Can't think of anything else. Let's see other suggestions.

      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