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. ListView EditTemplate

ListView EditTemplate

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

    Hi, I am using ListView, I am able to insert the values, but I want to populate the listview items for editing purpose. I am using EditTemplate. Its opening but coming with all the blank values. Actually I am diplaying the data in Item Template with Edit and Delete buttons. If once the Edit button is clicked then I have to get which edit button is clicked or some of its information like its key etc. I am using DataKeys property in ListView can I get any information from it? Can anybody please help me to prepopulate those controls from a collection or entity. thanks in advance for the help. Thanks, Abdul

    Thanks & Regards, Abdul Aleem Mohammad St Louis MO - USA

    R A 2 Replies Last reply
    0
    • I indian143

      Hi, I am using ListView, I am able to insert the values, but I want to populate the listview items for editing purpose. I am using EditTemplate. Its opening but coming with all the blank values. Actually I am diplaying the data in Item Template with Edit and Delete buttons. If once the Edit button is clicked then I have to get which edit button is clicked or some of its information like its key etc. I am using DataKeys property in ListView can I get any information from it? Can anybody please help me to prepopulate those controls from a collection or entity. thanks in advance for the help. Thanks, Abdul

      Thanks & Regards, Abdul Aleem Mohammad St Louis MO - USA

      R Offline
      R Offline
      Reza Ahmadi
      wrote on last edited by
      #2

      Hi, Take a look at this post: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview.edititemtemplate.aspx[^]

      1 Reply Last reply
      0
      • I indian143

        Hi, I am using ListView, I am able to insert the values, but I want to populate the listview items for editing purpose. I am using EditTemplate. Its opening but coming with all the blank values. Actually I am diplaying the data in Item Template with Edit and Delete buttons. If once the Edit button is clicked then I have to get which edit button is clicked or some of its information like its key etc. I am using DataKeys property in ListView can I get any information from it? Can anybody please help me to prepopulate those controls from a collection or entity. thanks in advance for the help. Thanks, Abdul

        Thanks & Regards, Abdul Aleem Mohammad St Louis MO - USA

        A Offline
        A Offline
        Angel1320
        wrote on last edited by
        #3

        as you can bind ItemTemplate , same way bind EditTemplate also so during Editing you won't get Blank fields.

        I 1 Reply Last reply
        0
        • A Angel1320

          as you can bind ItemTemplate , same way bind EditTemplate also so during Editing you won't get Blank fields.

          I Offline
          I Offline
          indian143
          wrote on last edited by
          #4

          Hi, Sorry to inform you little late I resolved it. Thanks for your support.

          Thanks & Regards, Abdul Aleem Mohammad St Louis MO - USA

          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