ListView EditTemplate
-
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
-
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
Hi, Take a look at this post: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview.edititemtemplate.aspx[^]
-
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
-
as you can bind ItemTemplate , same way bind EditTemplate also so during Editing you won't get Blank fields.