private void grdMain_ItemCommand(object source, DataGridCommandEventArgs e) { if (e.CommandName == "Restore") { int EventTypeId = int.Parse(e.CommandArgument.ToString()); SystemEvents.DeletePersonalSubscription(EventTypeId); } BindData(); }