asp.net - vb.net gridview row highlight and image change onmouseover -


i can find different ways highlight rows of gridview onmouseover, can't figure out how change imageurl property of imagebutton inside row. have gridview alternate row background , 2 imagebutton in cell 0. images red, highlight color must red, when row highlighted want change images alternative ones white. how achieve so? 1 example found row highlight, can please add image changing thing? also, how trigger delete command confirmation dialog on highlighted row when imagebutton pressed? thank you

protected sub gvhremploye_rowdatabound(sender object, e gridviewroweventargs)     if e.row.rowtype = system.web.ui.webcontrols.datacontrolrowtype.datarow          ' when mouse on row, save original color new attribute, , change highlight color         e.row.attributes.add("onmouseover", "this.originalstyle=this.style.backgroundcolor;this.style.backgroundcolor='#eeffaa'")          ' when mouse leaves row, change bg color original value              e.row.attributes.add("onmouseout", "this.style.backgroundcolor=this.originalstyle;")     end if  end sub 


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -