DataGrid mouse moving color

zhaozj2021-02-16  47

private void DataGrid1_ItemDataBound (object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) {if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) {e.Item.Attributes ["onMouseOver"] = "this.classname = / 'tdbg-dark /';"; E.Item.attributes ["onmouseout"] = "this.classname = / 'tdbg /';"; ((linkbutton) .Item.FindControl ("lb_del")). Attributes.add ("onclick", "Return Confirm ('Do you have to delete this item?');");}}

Nice``

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

New Post(0)