I have a listview where each row contains usercontrol. Usercontrol data remain same for both EditItemTemplate and ItemTemplate mode. Rather that instanciating the same usercontrol twice for both edit and item mode, is there anyway i can use the itemTemplate usercontrol instance in edititemtemplate?
A:
Hey,
When a row enters edit mode, it does not render the item template,so there isn't a duplicate rendering... so you only have to worry about one instance for that row anyway.
HTH.
Brian
2010-08-04 14:33:49
Actually as a part of requirement i need duplicate rendering. when row enter edit mode it intanciate its own usercontrol which is same as the one in itemtemplate. Maintaing viewstate and fetching data is actuaaly impacting the performance and increasing complexity.
Vipin Khari
2010-08-04 14:37:42