• 如何在EDIT MODE recolor中坚持电网-view row in EDIT MODE recolor, when倒其他各行
ROW如果被列入EDIT MODE,则以yellow Backcolor
为重点。
the problem is when you try to hover over the other rows then it loses the backcolor, so my question is : how can i keep that backcolor even if its hover outisde the edit mode?
void gv_RowDataBound(object sender, GridViewRowEventArgs e)
{
if ((e.Row.RowState == (DataControlRowState.Edit | DataControlRowState.Alternate)) || (e.Row.RowState == DataControlRowState.Edit))
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.BackColor = System.Drawing.Color.Yellow;
}
}