protected void GridView
_RowDataBound(object sender
GridViewRowEventArgs e)
{
e
Row
Attributes
Add(
onmouseover
c=this
style
backgroundColor;this
style
backgroundColor=
#
B
FF
);
e
Row
Attributes
Add(
onmouseout
this
style
backgroundColor=c
);
e
Row
Attributes[
style
] =
Cursor:hand
;
int count = GridView
Rows
Count;
string ID =
;
for (int i =
; i < count; i++)
{
ID = GridView
DataKeys[i]
Value
ToString();
GridView
Rows[i]
Attributes
Add(
onclick
newwin=window
open(
default
aspx?ID=
+ ID +
newwin
width=
height=
)
);
}
}
From:http://tw.wingwit.com/Article/program/net/201311/13830.html