so, have a delete button in my datagrid with a javascript confirmation.<BR><BR>It is implemented adding a LinkButton to a Template Column and adding onclick event during ItemDataBound for the Datagrid.<BR><BR>Dim l As LinkButton<BR>If e.Item.ItemType = ListItemType.Item Or e.Item.ItemType = ListItemType.AlternatingItem Then<BR>l = CType(e.Item.Cells(0).FindControl("cmdDel"), LinkButton)<BR>l.Attributes.Add("onclick", "return getconfirm();")<BR>End If <BR><BR>My problem is that during edit mode this attribute assignment doesn&#039;t fire and I&#039;m not sure why. Because on EditCommand for the datagrid, I call up BindData() function to bind the datagrid with the data, so the ItemDataBound event should fire as well, but it doesn&#039;t.<BR><BR>So when I click on the Delete button during edit mode I don&#039;t have the javascript confirmation.<BR><BR>Any ideas? <BR><BR>Thank you