void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { DataRow dr = gridView1.GetDataRow(e.RowHandle); drDel = dr; //EventArgs //DXMessageBox.btnCancelClick = (object sender,EventArgs e) => { }; if (e.Column.Name == "del") { if (dr["del"].ToString() == "---") { return; } DXMessageBox.btnOKClick += DXMessageBox_btnOKClick; DXMessageBox.ShowQuestion("确定要删除吗?"); } else if (e.Column.Name == "look_report") { FrmReport frmReport = new FrmReport(); frmReport.inidata(); frmReport.initPersonData(dr); frmReport.ShowDialog(); frmReport.Dispose(); } else if (e.Column.Name == "user_times") { FromPHR frm = new FromPHR(dr); frm.Enabled = true; frm.ShowDialog(); frm.Dispose(); } else if (e.Column.Name == "user_id") { GetItemData(dr); } }