Note that there are some explanatory texts on larger screens.

plurals
  1. POGridview: Keep style of SelectedRow
    primarykey
    data
    text
    <p>I change the styles of the rows normal, alternate and selected via stylesheets. Additionally I implemented onmouseover, onmouseoout and class with gv_Alternativen_RowDataBound.</p> <p>But when I do a mouseover in the selected row, the wrong onmouseout is placed there:</p> <pre><code> Protected Sub gv_Alternativen_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gv_Alternativen.RowDataBound If e.Row.RowType = DataControlRowType.DataRow Then Select Case e.Row.RowState Case Is &lt;&gt; DataControlRowState.Selected 'odd even If e.Row.RowState = DataControlRowState.Normal And e.Row.RowState &lt;&gt; DataControlRowState.Selected Then e.Row.Attributes.Clear() e.Row.Attributes.Add("onmouseout", "this.className='PopupAngeboteRow'") e.Row.Attributes.Add("onmouseover", "this.className='PopupAngeboteRowHover'") e.Row.Attributes.Add("class", "PopupAngeboteRow") ElseIf e.Row.RowState = DataControlRowState.Alternate And e.Row.RowState &lt;&gt; DataControlRowState.Selected Then e.Row.Attributes.Clear() e.Row.Attributes.Add("onmouseout", "this.className='PopupAngeboteAlternatingRow'") e.Row.Attributes.Add("onmouseover", "this.className='PopupAngeboteRowHover'") e.Row.Attributes.Add("class", "PopupAngeboteAlternatingRow") End If Case Is = DataControlRowState.Selected e.Row.Attributes.Clear() e.Row.Attributes.Add("onmouseover", "this.className='PopupAngeboteRowSelected'") e.Row.Attributes.Add("onmouseout", "this.className='PopupAngeboteRowSelected'") e.Row.Attributes.Add("class", "PopupAngeboteRowSelected") End Select End If End Sub </code></pre> <p>Any ideas???</p> <p>thx a lot in advance, greetings...</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload