Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gridview values on Mouseover

Status
Not open for further replies.

stephenk1973

Technical User
Jun 11, 2003
246
GB
I have a gridview showing the stock level of a number of different items, the values sit into a grid of 12 columns relating to 12 possible sizes, the size range of each item can be different ( examples 1,2..12 or S,M,L), i have returned these in a further 12 hiddne columns in the gird.

How i get retrieve these values on a "mouseover" event? Currently i'm using jave to change colour for the select row....

Any suggestion appreciated.

Code so far...
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowDataBound

If e.Row.RowType = DataControlRowType.DataRow Then

e.Row.Attributes.Add "onmouseover", "this.style.backgroundColor='yellow'")
e.Row.Attributes.Add "onmouseout", "this.style.backgroundColor=''")

Thanks

Stephen

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top