I have a开发者_StackOverflow社区 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?
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.
精彩评论