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. DataList Item Enumeration in ASP .NET 2.0

DataList Item Enumeration in ASP .NET 2.0

Scheduled Pinned Locked Moved ASP.NET
csharphelpquestion
2 Posts 1 Posters 1 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.
  • R Offline
    R Offline
    ReactiveX
    wrote on last edited by
    #1

    Hi there. I'm having an issue with enumerating through the bound items in my DataList. It seems as though the Items property of the DataList control only contains the control that you add as an Item Template. Is there anyway to enumerate through the DataList's BOUND items and convert it back to the original control type?

    Daniel Minnaar Lead Software Developer

    R 1 Reply Last reply
    0
    • R ReactiveX

      Hi there. I'm having an issue with enumerating through the bound items in my DataList. It seems as though the Items property of the DataList control only contains the control that you add as an Item Template. Is there anyway to enumerate through the DataList's BOUND items and convert it back to the original control type?

      Daniel Minnaar Lead Software Developer

      R Offline
      R Offline
      ReactiveX
      wrote on last edited by
      #2

      I've solved the problem. The way to enumerate is: For Each item As DataListItem In lstControlList For Each ctl As Control In item.Controls CType(ctl, MyControlObject).Property = Value Next Next

      Daniel Minnaar Lead Software Developer

      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