0
스타일 시트를 통해 정상, 대체 및 선택된 행 스타일을 변경합니다. 또한 onmouseover, onmouseoout 및 gv_Alternativen_RowDataBound 클래스를 구현했습니다. Gridview : SelectedRow의 스타일 유지
하지만 내가 선택한 행에 마우스 오버를 수행 할 때, 잘못된 onmouseout이 배치된다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 <> DataControlRowState.Selected
'odd even
If e.Row.RowState = DataControlRowState.Normal And e.Row.RowState <> 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 <> 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
어떤 아이디어가 ??? 이 대신 답을주는 왜 작동
들으 사전, 인사에 많은 ...
당신이 설명 할 수 있습니다. – ArtB