コード例 #1
0
        void btnAdd_Click(object sender, EventArgs e)
        {
            frmdddd frmadd = new frmdddd(null);

            frmadd.ShowDialog();
            frmadd.Dispose();
            Getdata();
        }
コード例 #2
0
        void gridView2_RowCellClick(object sender, DevExpress.XtraGrid.Views.Grid.RowCellClickEventArgs e)
        {
            DataRow dr = gridView2.GetDataRow(e.RowHandle);

            if (e.Column.Name == "modify")
            {
                frmdddd frmadd = new frmdddd(dr);
                frmadd.ShowDialog();
                frmadd.Dispose();
                Getdata();
            }
            else if (e.Column.Name == "del")
            {
                delrow = dr;
                DXMessageBox.btnOKClick += DXMessageBox_btnOKClick;
                DXMessageBox.ShowQuestion("确定要删除吗");
            }
        }