The thickness of the Dategrid's deletion

xiaoxiao2021-03-06  71

In the event ItemCreated DataGrid: private void dg_ItemCreated (object sender, System.Web.UI.WebControls.DataGridItemEventArgs e) {if (e.Item.ItemIndex <0) return; System.Web.UI.WebControls.LinkButton likButton; if ( E.Item.itepe.Item || E.Item.itemType == ListItemType.alternatingItem) {LikButton = (linkbutton) E.Item.cells [6] .controls [0]; likbutton.attributes.add (" OnClick "," Return Confirm ('Do you really want to delete this row?'); ");

}

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

New Post(0)