void btnCreate_Click(object sender, EventArgs e) { frmAddProject frmad = new frmAddProject(); // frmad.Getdata(); frmad.Indata(""); frmad.ShowDialog(); frmad.Dispose(); GetData(); }
private void gridView1_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e) { DataRow dr = gridView2.GetDataRow(e.RowHandle); if (e.Column.Name == "del") { Delrow = dr; DXMessageBox.btnOKClick += DXMessageBox_btnOKClick; DXMessageBox.ShowQuestion("确定要删除吗"); } else if (e.Column.Name == "modify") { string project_id = dr["project_id"].ToString(); frmAddProject frmad = new frmAddProject();// frmad.Getdata(); frmad.Indata(project_id); frmad.ShowDialog(); frmad.Dispose(); GetData(); } }