In the Repeater_ItemDataBound is it possible to get a previously bound item by index?
For example say that I was binding the 5th item in the repeater, is it possible to get access to the first item so that I can change the imagebuttons style sheet?
Kamal KhaleefaInformation Security SpecialistCommented:
you can assign a style sheet by the following
e.Row.Attributes("onMouseOver") = "this.className='RSHover'"
If e.Row.RowIndex Mod 2 = 0 Then
e.Row.Attributes("onMouseOut") = "this.className='GridRowStyle'"
Else
e.Row.Attributes("onMouseOut") = "this.className='GridAlternatingRowStyle'"
End If
0
Question has a verified solution.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
e.Row.Attributes("onMouseO
If e.Row.RowIndex Mod 2 = 0 Then
e.Row.Attributes("onMouseO
Else
e.Row.Attributes("onMouseO
End If