예제 #1
0
        private void btnPhucHoi_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            TaiKhoan obj = bindingSourceTaiKhoan.Current as TaiKhoan;

            if (obj != null)
            {
                if (obj.IsNew)
                {
                    bindingSourceNhomQuyen.Remove(obj);
                    gridViewTaiKhoan.RefreshData();
                }
                else
                {
                    obj.CancelChanges();
                    gridViewTaiKhoan.RefreshData();
                }
            }
        }