private void gridViewModeloProduccion_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { try { if (e.FocusedColumn.Caption == "Producto Egreso" || e.FocusedColumn.Caption == "Producto Ingreso") { cmbProductoEgreso.Items.Clear(); cmbMateriaPrima.Items.Clear(); int Id = Bodega_B.Get_List_Bodega(param.IdEmpresa, Convert.ToInt32(gridViewModeloProduccion.GetFocusedRowCellValue(colIdSucursal_IngxProducTermi))).First(v => v.bo_Descripcion == gridViewModeloProduccion.GetFocusedRowCellValue(colBodegaEgreso).ToString()).IdBodega; foreach (var item in producto_B.Get_list_ProductosSucursalXBodegaXModulodeProduccion(param.IdEmpresa, Convert.ToInt32(gridViewModeloProduccion.GetFocusedRowCellValue(colIdModeloProd)), Id, Convert.ToInt32(gridViewModeloProduccion.GetFocusedRowCellValue(colIdSucursal_EgrxMateriaPrima)))) { if (item.nom_Tipo_Producto == "PRODTERMI") { cmbProductoEgreso.Items.Add(item.pr_descripcion); } else { cmbMateriaPrima.Items.Add(item.pr_descripcion); } } } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); } }
private void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { string fileName = e.FocusedColumn.FieldName; //得到该列的字段名 string a = e.FocusedColumn.ColumnType.ToString(); //得到该列的数据类型 // MessageBox.Show(fileName); // MessageBox.Show(a); }
private void gvFields_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (gcFields.IsLoading || !gcFields.Created || gvFields.IsLoading || gvFields.IsEmpty || e.FocusedColumn == null) { return; } e.FocusedColumn.OptionsColumn.AllowEdit = true; FieldType fType = gvFields.GetRowCellValue(gvFields.FocusedRowHandle, gColDatatype) as FieldType; if (fType == null) { return; } if (e.FocusedColumn == gColLength) { e.FocusedColumn.OptionsColumn.AllowEdit = !fType.LengthFixed; } if (e.FocusedColumn == gColPrecision) { e.FocusedColumn.OptionsColumn.AllowEdit = fType.PrecisionEnabled; } }
private void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (gridView1.GetFocusedValue() != null) { gridView1.OptionsBehavior.Editable = (gridView1.GetFocusedValue().ToString() == ""); } }
private void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { try { int iRow = gridView1.FocusedRowHandle; if (iRow < 0) { return; } try { gridView1.FocusedRowHandle -= 1; gridView1.FocusedRowHandle += 1; } catch { } if (e.FocusedColumn == gridColumn2 && gridView1.GetRowCellValue(iRow, gridColumn1).ToString().Trim() == "1") { gridColumn2.OptionsColumn.AllowEdit = false; } else { gridColumn2.OptionsColumn.AllowEdit = true; } } catch { } }
private void MyView_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (!checkEdit1.Checked) { propertyGridControl1.SelectedObject = gridView1.FocusedColumn; } }
private void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (gridView1 == null) { return; } if (gridView1.GetRowCellDisplayText(gridView1.FocusedRowHandle, "SCat_ID").ToString() == "") { gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["SCat_ID"], string.Empty); //gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["CatSub_D"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["SCat_ID"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Item_ID"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Item_D"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Item_ID"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Item_Unit"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Color_DD"], string.Empty); } if (gridView1.GetRowCellDisplayText(gridView1.FocusedRowHandle, "Item_ID").ToString() == "") { gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Item_ID"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Item_D"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Item_ID"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Item_Unit"], string.Empty); gridView1.SetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["Color_DD"], string.Empty); } gridControl1.EmbeddedNavigator.NavigatableControl.DoAction(DevExpress.XtraEditors.NavigatorButtonType.EndEdit); if (gridView1.Columns["Amount"].SummaryItem.SummaryValue != null) { txtAmt_Total.Text = Convert.ToDouble(gridView1.Columns["Amount"].SummaryItem.SummaryValue).ToString(); //txtAmt_R1.Text = Convert.ToDouble(gridView1.Columns["Amt_R1"].SummaryItem.SummaryValue).ToString(); } }
private void advBandedGridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { AdvBandedGridView view = sender as AdvBandedGridView; view.InvalidateColumnHeader(e.PrevFocusedColumn); view.InvalidateColumnHeader(e.FocusedColumn); }
private void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle); if (dr != null) { txtAd.Text = dr["Ad"].ToString(); txtSektor.Text = dr["Sektor"].ToString(); txtYetkiliAdSoyad.Text = dr["YetkiliAdSoyad"].ToString(); txtYetkiliGorev.Text = dr["YetkiliStatu"].ToString(); mskTC.Text = dr["YetkiliTC"].ToString(); mskTel1.Text = dr["Telefon1"].ToString(); mskTel1.Text = dr["Telefon2"].ToString(); mskTel1.Text = dr["Telefon3"].ToString(); txtMail.Text = dr["Mail"].ToString(); mskFax.Text = dr["Fax"].ToString(); cmbIl.Text = dr["Il"].ToString(); cmbIlce.Text = dr["Ilce"].ToString(); txtVergiDaire.Text = dr["VergiDaire"].ToString(); rchAdres.Text = dr["Adres"].ToString(); txtOzelKod1.Text = dr["OzelKod1"].ToString(); txtOzelKod2.Text = dr["OzelKod1"].ToString(); txtOzelKod3.Text = dr["OzelKod1"].ToString(); } }
private void qsLayoutView_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (qsLayoutView.RowCount > 0) { prepareQry(); } }
private void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (!isloading) { if (isValueChanged) { DialogResult question; question = MessageBox.Show("변경된 자료를 저장하지 않았습니다. \n\r저장할까요?", "주의", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (question == DialogResult.Yes) { btn_apply.PerformClick(); } } isValueChanged = false; DataRow target = gridView1.GetDataRow(gridView1.FocusedRowHandle); string emp = Convert.ToString(target["sw_id"]); string dept = Convert.ToString(target["bs_id"]); if (gridView1.FocusedColumn.FieldName == "bs_name") { lbl_subtitle2.Text = target["bs_name"].ToString() + " 권한설정"; read_menu(dept); } else { lbl_subtitle2.Text = target["sw_name"].ToString() + " 권한설정"; read_menu(emp); } } }
private void gridBs_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.FocusedColumn.FieldName == "BillSundry") { gridBs.ShowEditor(); ((LookUpEdit)gridBs.ActiveEditor).ShowPopup(); } }
private void dvgChequeIssueDetails_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.FocusedColumn.FieldName == "Account") { dvgChequeIssueDetails.ShowEditor(); ((LookUpEdit)dvgChequeIssueDetails.ActiveEditor).ShowPopup(); } }
private void grvItems_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { //If the selected item is not an account you cannot change the cost if (e.FocusedColumn == colAmount && (grvItems.GetFocusedRow() as DB.ITM_BOM_RecipeLine).LineItem.TypeId != (byte)BL.SYS.SYS_Type.Account) { grvItems.FocusedColumn = e.PrevFocusedColumn; } }
//Focused column changed event manager private void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (contactBindingSource.Current != null) { AnnuaireDataSet.contactRow row = ((DataRowView)contactBindingSource.Current).Row as AnnuaireDataSet.contactRow; ManageInfosContact(row.id); } }
private void gdvCredit_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.FocusedColumn.FieldName == "Account") { gdvCredit.ShowEditor(); ((LookUpEdit)gdvCredit.ActiveEditor).ShowPopup(); } }
private void gdvItem_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.FocusedColumn.FieldName == "Item") { dvgItemDetails.ShowEditor(); ((LookUpEdit)dvgItemDetails.ActiveEditor).ShowPopup(); } }
private void dvgProductGeneratedDet_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.FocusedColumn.FieldName == "ItemName") { dvgProductGeneratedDet.ShowEditor(); ((LookUpEdit)dvgProductGeneratedDet.ActiveEditor).ShowPopup(); } }
private void gridView_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.FocusedColumn == colRemark && new Guid(gridView.GetRowCellValue(gridView.FocusedRowHandle, colGoodsID).ToString()) != Guid.Empty && decimal.Parse(gridView.GetRowCellValue(gridView.FocusedRowHandle, colQty).ToString()) > 0) { gridView.AddNewRow(); } }
private void opmLayoutView_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { var view = sender as DevExpress.XtraGrid.Views.Layout.LayoutView; if (view.IsFocusedView && e.FocusedColumn != null && OzlDrm.ContainsKey(e.FocusedColumn.FieldName) && e.FocusedColumn != colOzlDrm) { view.SetFocusedRowCellValue(colOzlDrm, OzlDrm[e.FocusedColumn.FieldName]); } }
private void grdEvrakView_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.PrevFocusedColumn != null) { if (e.PrevFocusedColumn.VisibleIndex > 0) { MiktarTutarHesapla(grdEvrakView.FocusedRowHandle, e.PrevFocusedColumn.VisibleIndex); } } }
private void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { SalesOrder so = (SalesOrder)SalesOrderBindingSource.DataSource; if (!so.IsEditable) { (sender as DevExpress.XtraGrid.Views.Grid.GridView).FocusedColumn = null; } ((DevExpress.XtraGrid.Views.Grid.GridView)sender).ShowEditor(); }
private void gvDetail_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (IsFirstLoad && gvDetail.GetFocusedDataRow() != null) { if (gvDetail.GetFocusedDataRow()["sGoodID"].ToString() == "") { gvDetail.FocusedColumn = gvDetail.Columns[0]; } } }
private void GridView_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.FocusedColumn.VisibleIndex <= 0) { bEdit.Enabled = false; } else { bEdit.Enabled = true; } }
/// <summary> /// 如果选择CheckBox,则允许修改 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gridTaskDetail_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.FocusedColumn == colCheckBox) { gridTaskDetail.OptionsBehavior.ReadOnly = false; } else { gridTaskDetail.OptionsBehavior.ReadOnly = true; } }
private void KontoView_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (!this.panelControl3.Visible) { return; } if (this.GridSetting) { return; } ((PropertyGridControl)this.panelControl3.Controls[0]).SelectedObject = e.FocusedColumn; }
void gridView1_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.PrevFocusedColumn == gridView1.Columns[2]) { gridView1.FocusedColumn = gridView1.Columns[0]; gridView1.FocusedRowHandle = gridView1.RowCount - 1; gridView1.FocusedRowHandle = -999998; } if (e.PrevFocusedColumn == gridView1.Columns[0]) { gridView1.FocusedColumn = gridView1.Columns[2]; } }
private void dvgCostCenterDetails_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { if (e.FocusedColumn.FieldName == "Costcenter") { dvgCostCenterDetails.ShowEditor(); ((LookUpEdit)dvgCostCenterDetails.ActiveEditor).ShowPopup(); } if (e.FocusedColumn.FieldName == "DC") { dvgCostCenterDetails.ShowEditor(); ((LookUpEdit)dvgCostCenterDetails.ActiveEditor).ShowPopup(); } }
private void gridView2_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { Trace.WriteLine($@""); int nJeffe = 0; nJeffe++; Trace.WriteLine($@"gridView2_FocusedColumnChanged"); var cs = gridView2.Columns.ToList(); Trace.WriteLine($@"{gridView2.FocusedColumn}"); Trace.WriteLine($@"{gridView2.FocusedRowHandle}"); Trace.WriteLine($@"{gridView2.FocusedValue}"); }
/// <summary> /// 그리드뷰에서 포커스 변경 /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs"/> instance containing the event data.</param> private void GridView_FocusedColumnChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedColumnChangedEventArgs e) { try { this.txtHoli.Tag = null; this.txtHoli.Text = ""; this.txtHoli.Visible = false; } catch (Exception ex) { Basic.ShowMessage(3, ex.Message); } }