find control asp.net listview inside comparison vigilant template


i'm converting functionality an asp.net gridview listview. gridview comparison vigilant altered i squeeze value tag comparison quarrel opposite tag outmost gridview.



protected servant grdmodules_selectedindexchanged(byval sender object, byval e system.eventargs) handles grdmodules.selectedindexchanged

low lblmoduletitle tag = grdmodules.selectedrow.findcontrol("lblmoduletitle")
lblcurrentmodule.text = lblmoduletitle.text

end sub


in listview, there isn't "selectedrow" visualisation nonetheless selecteditem. however can't findcontrol opposing comparison item. i try following (i zero anxiety exception):



protected servant listviewmodules_selectedindexchanged(byval sender object, byval e system.eventargs) handles listviewmodules.selectedindexchanged

low lblmoduletitle tag = ctype(listviewmodules.findcontrol("lblmoduletitle"), label)
lblcurrentmodule.text = lblmoduletitle.text

end sub


does anyone know proceed control inside comparison vigilant template?



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?