The mouse is placed in changing the color of the DataGrid line

xiaoxiao2021-03-05  20

IF (E.Item.ItemType == ListItemType.Item || E.Item.ItemType == ListItemType.alternatingItem)

{

E.Item.attributes.add ("onmouseover", "currentcolor = this.style.BackgroundColor; this.style.backcolor = '# cee0fb'");

E.Item.attributes.add ("onmouseout", "this.style.BackgroundColor = CurrentColor");

LinkButton LBT = (LinkButton) E.Item.FindControl ("lbt_delete");

Lbt.attributes.add ("onclick", "Return Confirm (/" Do you confirm that you want to delete? / ")");

}

转载请注明原文地址:https://www.9cbs.com/read-32341.html

New Post(0)