private void gridView1_DoubleClick(object sender, EventArgs e) { if (string.IsNullOrEmpty(ProductGroupId)) { XtraMessageBox.Show("Bạn chưa chọn Nhóm Hàng cần sửa!", "THÔNG BÁO"); } else { var updateProductGroup = new FormUpdateProductGroup(ProductGroupId); updateProductGroup.ShowDialog(); LoadProductGroups(); ProductGroupId = null; EnableButtonUpdateAndDelete(false); } }