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. General Programming
  3. C#
  4. Datagrid IN a Datalist

Datagrid IN a Datalist

Scheduled Pinned Locked Moved C#
csshelpquestionannouncement
1 Posts 1 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.
  • T Offline
    T Offline
    tidge
    wrote on last edited by
    #1

    So I have this datagrid in a web user control. The grid has some basic link buttons for functionality like Edit, Add, Update and Cancel. They all work fine when the user control is put on a web page. I came across a need to have this datagrid repeat with some other information so I put the user control in a datalist. Now only the Edit and Add buttons work. I set some breakpoints, and it looks like any of the buttons located in the grid's EditItemTemplate will not fire their grid events. I set up some events and breakpoints in the datalist as well to see if the events were bubbling up somehow, but they weren't. When I click on the Update or Cancel link buttons the grid reverts back to EditItemIndex equal to -1 or at least the edit line is going back to the regular ItemTemplate. I set breakpoints everyplace I was setting the grid's EditItemIndex, and again no dice. Has anybody run into this problem? Anybody figure out a solution?

    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