private void grvDSBenhNhan_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (this.grvDSBenhNhan.CurrentRow != null) { tb_patient patient = (tb_patient)this.grvDSBenhNhan.CurrentRow.DataBoundItem; PanelCreatePatient panel = new PanelCreatePatient(); panel.Dock = DockStyle.Fill; panel.PanelListPatient = this; panel.SetData(patient); FormDialogMain form = new FormDialogMain(panel); form.Text = "Chi tiết bệnh nhân"; form.TitleForm = "Chi tiết hồ sơ bệnh nhân"; form.DesciptionForm = "Hiển thị hồ sơ thông tin chi tiết của bệnh nhân"; form.ShowDialog(); } }