Example #1
0
        private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmPDrelResult fr = new FrmPDrelResult();

            if (gridControl1.DataSource != null)
            {
                fr.datatable = (DataTable)gridControl1.DataSource;
                fr.ParentObj = ParentObj;
                fr.ShowDialog();
            }

            //if (fr.ShowDialog()==DialogResult.OK)
            //{

            //}
        }
Example #2
0
        private void barButtonItem4_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            FrmPDrelResult fr = new FrmPDrelResult();
              if (gridControl1.DataSource!=null)
              {
                  fr.datatable = (DataTable)gridControl1.DataSource;
                  fr.ParentObj = ParentObj;
                  fr.ShowDialog();
              }

              //if (fr.ShowDialog()==DialogResult.OK)
              //{

              //}
        }