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)); } }
private void dpgGridView_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { if (xtFrm != null) {/* * if (e.PrevFocusedRowHandle != DevExpress.XtraGrid.GridControl.InvalidRowHandle) * { * string xtBlb, xtTxt; * if (xtFrm.GetBlob(out xtBlb, out xtTxt)) * { * dpgGridView.SetRowCellValue(e.PrevFocusedRowHandle, colXTBLB, xtBlb); * dpgGridView.SetRowCellValue(e.PrevFocusedRowHandle, colXTTXT, xtTxt); * Save(); * } * }*/ xtFrm.NewId(dpgGridView.GetFocusedRowCellValue(colDPGID), dpgGridView.GetFocusedRowCellValue(colXTBLB)); } }
private void dpgaGridView_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { //SourceRowChangedEventArgs ea = new SourceRowChangedEventArgs((int)dpgaGridView.GetRowCellValue(e.FocusedRowHandle, colDPGID)); //OnSourceRowChanged(ea); // Rise //if (xtFrmVisible) {/* * if (e.PrevFocusedRowHandle != DevExpress.XtraGrid.GridControl.InvalidRowHandle) * { * string xtBlb, xtTxt; * if (xtFrm.GetBlob(out xtBlb, out xtTxt)) * { * dpgaGridView.SetRowCellValue(e.PrevFocusedRowHandle, colXTBLB, xtBlb); * dpgaGridView.SetRowCellValue(e.PrevFocusedRowHandle, colXTTXT, xtTxt); * } * }*/ xtFrm.NewId(dpgaGridView.GetFocusedRowCellValue(colDPGID), dpgaGridView.GetFocusedRowCellValue(colXTBLB)); } }