Ejemplo n.º 1
0
        private void tableExtensions2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (dpgaGridView.DataRowCount == 0)
            {
                return;
            }

            bool panelYok = true;

            for (int i = 0; i < dockManager.Panels.Count; i++)
            {
                if (dockManager.Panels[i].Name == "xtPanel")
                {
                    dockManager.Panels[i].Show();
                    panelYok = false;
                }
            }
            if (panelYok)
            {
                var panel = dockManager.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Right);
                panel.Name = "xtPanel";
                panel.Text = "Table Extensions";

                xtFrm        = new XT.xtXUC();
                xtFrm.RefTbl = "DPG";
                xtFrm.Dock   = DockStyle.Fill;
                panel.Controls.Add(xtFrm);     // Panel Show edilene kadar FormLoad cagrilmiyor

                xtFrm.NewId(dpgaGridView.GetFocusedRowCellValue(colDPGID), dpgaGridView.GetFocusedRowCellValue(colXTBLB));
            }
        }