protected void Identifier_Delete(object sender, DataGridCommandEventArgs e) { int index = e.Item.ItemIndex; identifierBag.RemoveAt(index); if (null != entity) { entity.Save(); } if (null != cache) { cache.Save(); } PopulateDataGrid(); }
protected void CategoryBag_OnDelete(object sender, DataGridCommandEventArgs e) { int index = e.Item.ItemIndex; categoryBag.RemoveAt(index); if (null != entity) { entity.Save(); } if (null != cache) { cache.Save(); } CategoryBag_DataBind(false); }