private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn item in e.Layout.Bands[0].Columns) { item.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; } }
private void dgv_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns[1].Header.Caption = "Total items"; e.Layout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[1].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[2].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[3].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[4].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[0].Width = 130; e.Layout.Bands[0].Columns[1].Width = 60; e.Layout.Bands[0].Columns[2].Width = 60; e.Layout.Bands[0].Columns[4].Width = 60; e.Layout.Bands[0].Columns[3].Width = 80; e.Layout.Bands[0].Columns[1].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center; e.Layout.Bands[0].Columns[2].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center; e.Layout.Bands[0].Columns[3].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center; e.Layout.Bands[0].Columns[4].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center; e.Layout.Bands[0].Columns[1].Format = "N0"; e.Layout.Bands[0].Columns[2].Format = "N0"; e.Layout.Bands[0].Columns[4].Format = "P2"; e.Layout.Bands[0].Columns[3].Format = "C0"; e.Layout.Bands[0].Columns[4].Header.Caption = "%"; }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns[(int)Columnas.Linea].Width = 90; e.Layout.Bands[0].Columns[(int)Columnas.Articulo].Width = 110; e.Layout.Bands[0].Columns[(int)Columnas.Descripcion].Width = 250; e.Layout.Bands[0].Columns[(int)Columnas.Clasificacion].Width = 100; }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["DocEntry"].Hidden = true; e.Layout.Bands[0].Columns["entregado"].Hidden = true; e.Layout.Bands[0].Columns["Objtype"].Hidden = true; e.Layout.Bands[0].Columns["DocNum"].Width = 70; e.Layout.Bands[0].Columns["CardCode"].Width = 70; e.Layout.Bands[0].Columns["CardName"].Width = 180; e.Layout.Bands[0].Columns["DocTotal"].Width = 90; e.Layout.Bands[0].Columns["Comentarios OC"].Width = 200; //e.Layout.Bands[0].Columns["Recepción documentos"].Width = 60; e.Layout.Bands[0].Columns["DocNum"].Header.Caption = "Num de OC"; e.Layout.Bands[0].Columns["CardCode"].Header.Caption = "Proveedor"; e.Layout.Bands[0].Columns["CardName"].Header.Caption = "Nombre"; e.Layout.Bands[0].Columns["DocTotal"].Header.Caption = "Total"; e.Layout.Bands[0].Columns["Comentarios OC"].Header.Caption = "Comentarios"; e.Layout.Bands[0].Columns["DocTotal"].Format = "C2"; e.Layout.Bands[0].Columns["DocTotal"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Fecha recepcion"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center; e.Layout.Bands[0].Columns["Documento"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["DocNum"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["CardCode"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["CardName"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["DocTotal"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["Comentarios OC"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; }
private void grdInvoice_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns[0].Width = 50; e.Layout.Bands[0].Columns[1].Width = 100; e.Layout.Bands[0].Columns[2].Width = 400; e.Layout.Bands[0].Columns[3].Width = 150; }
private void dgvDetalle_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["Artículo"].Header.Fixed = true; e.Layout.Bands[0].Columns["transAPI"].Header.Caption = "Transferir API"; e.Layout.Bands[0].Columns["transCOR"].Header.Caption = "Transferir COR"; e.Layout.Bands[0].Columns["transPUE"].Header.Caption = "Transferir PUE"; e.Layout.Bands[0].Columns["transEDOMEX"].Header.Caption = "Transferir EDOMEX"; e.Layout.Bands[0].Columns["transAPI"].Header.Caption = "Transferir API"; e.Layout.Bands[0].Columns["transGDL"].Header.Caption = "Transferir GDL"; e.Layout.Bands[0].Columns["transMTY"].Header.Caption = "Transferir MTY"; e.Layout.Bands[0].Columns["transNLAREDO"].Header.Caption = "Transferir NLAREDO"; e.Layout.Bands[0].Columns["transSAL"].Header.Caption = "Transferir SAL"; e.Layout.Bands[0].Columns["transTEP"].Header.Caption = "Transferir TEP"; foreach (var item in e.Layout.Bands[0].Columns) { item.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; if (item.Header.Caption.Contains("Ideal") | item.Header.Caption.Contains("Stock")) { item.Hidden = true; } item.Format = "N0"; item.CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; } e.Layout.Bands[0].Columns["Stock CEDIS"].Hidden = false; e.Layout.Bands[0].Columns["Artículo"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Left; }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { try { e.Layout.Override.AllowMultiCellOperations = Infragistics.Win.UltraWinGrid.AllowMultiCellOperation.Copy; e.Layout.Bands[0].Columns[(int)Columnas.Docnum].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[(int)Columnas.CardCode].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[(int)Columnas.CardName].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[(int)Columnas.DocCur].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[(int)Columnas.DocTotal].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[(int)Columnas.DocDate].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[(int)Columnas.Planeador].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[(int)Columnas.Docnum].Width = 80; e.Layout.Bands[0].Columns[(int)Columnas.DocCur].Width = 80; e.Layout.Bands[0].Columns[(int)Columnas.CardCode].Width = 80; e.Layout.Bands[0].Columns[(int)Columnas.CardName].Width = 250; e.Layout.Bands[0].Columns[(int)Columnas.DocTotal].Width = 90; e.Layout.Bands[0].Columns[(int)Columnas.DocDate].Width = 90; e.Layout.Bands[0].Columns[(int)Columnas.Planeador].Width = 100; e.Layout.Bands[0].Columns[(int)Columnas.DocTotal].Format = "C2"; e.Layout.Bands[0].Columns[(int)Columnas.DocTotal].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; } catch (Exception) { } }
private void ultraCombo1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { if (e.Layout.Bands.Count > 0) { foreach (var clm in e.Layout.Bands[0].Columns) { if (clm.Header.Caption == "TEN_THUOC") { clm.Header.Caption = "Tên Thuốc"; //clm.Width = ultraCombo1.Width; } //else if (clm.Header.Caption == "HAM_LUONG") //{ // clm.Header.Caption = "Hàm Lượng"; //} //else if (clm.Header.Caption == "DONG_GOI") //{ // clm.Header.Caption = "Đóng Gói"; //} //else //{ // clm.Hidden = true; //} } } }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { dgvDatos.DisplayLayout.Bands[1].ColHeadersVisible = false; dgvDatos.DisplayLayout.Bands[1].Columns["Cantidad"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; dgvDatos.DisplayLayout.Bands[1].Columns["Valor trans."].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; dgvDatos.DisplayLayout.Bands[1].Columns["Cantidad Acumulada"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; dgvDatos.DisplayLayout.Bands[1].Columns["Cantidad"].Format = "N0"; dgvDatos.DisplayLayout.Bands[1].Columns["Valor trans."].Format = "N2"; dgvDatos.DisplayLayout.Bands[1].Columns["Cantidad Acumulada"].Format = "N0"; dgvDatos.DisplayLayout.Bands[0].Columns["Cantidad"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; dgvDatos.DisplayLayout.Bands[0].Columns["Valor trans."].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; dgvDatos.DisplayLayout.Bands[0].Columns["Cantidad Acumulada"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; dgvDatos.DisplayLayout.Bands[0].Columns["Cantidad"].Format = "N0"; dgvDatos.DisplayLayout.Bands[0].Columns["Valor trans."].Format = "N2"; dgvDatos.DisplayLayout.Bands[0].Columns["Cantidad Acumulada"].Format = "N0"; dgvDatos.DisplayLayout.Bands[0].Columns["CreatedBy"].Hidden = true; dgvDatos.DisplayLayout.Bands[0].Columns["TransType"].Hidden = true; dgvDatos.DisplayLayout.Bands[1].Columns["CreatedBy"].Hidden = true; dgvDatos.DisplayLayout.Bands[1].Columns["TransType"].Hidden = true; foreach (var band in dgvDatos.DisplayLayout.Bands) { foreach (var column in band.Columns) { column.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; } } }
private void grdInput_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs args) { // ** Place Event Handling Code Here ** grdInput.EpiAllowPaste = true; grdInput.EpiAllowPasteInsert = true; grdInput.InsertNewRowAfterLastRow = false; }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { try { e.Layout.Bands[0].Columns["ToWhsCode"].Hidden = true; e.Layout.Bands[0].Columns["DestinoNombre"].Hidden = true; e.Layout.Bands[0].Columns["WhsCode"].Hidden = true; e.Layout.Bands[0].Columns["OnHand"].Hidden = true; e.Layout.Bands[0].Columns["WhsName"].Hidden = true; e.Layout.Bands[0].Columns["BWeight1"].Hidden = true; e.Layout.Bands[0].Columns["Volumen"].Hidden = true; e.Layout.Bands[0].Columns["ItemCode"].Hidden = true; e.Layout.Bands[0].Columns["Cantidad"].Format = "N0"; e.Layout.Bands[0].Columns["QtyOK"].Format = "N0"; e.Layout.Bands[0].Columns["Cantidad"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Cantidad"].Header.Caption = "Disponible"; e.Layout.Bands[0].Columns["ItemCode"].Header.Caption = "Descripcón"; e.Layout.Bands[0].Columns["QtyOK"].Header.Caption = "Cantidad a Reubicar"; e.Layout.Bands[0].Columns["Cantidad"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["OrigenNombre"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["OrigenNombre"].Width = 120; e.Layout.Bands[0].Columns["ItemName"].Width = 150; e.Layout.Bands[0].Columns["OrigenNombre"].Header.Caption = "Almacén origen"; e.Layout.Bands[0].Columns["Cantidad"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["QtyOK"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; } catch (Exception ex) { throw new Exception(ex.Message); } }
private void ultraCombo1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { if (e.Layout.Bands.Count > 0) { foreach (var clm in e.Layout.Bands[0].Columns) { if (clm.Header.Caption == "SO_DANG_KY") { clm.Header.Caption = "Số Đăng Ký"; } else if (clm.Header.Caption == "TEN_THUOC") { clm.Width = 200; clm.Header.Caption = "Tên Thuốc"; } else if (clm.Header.Caption == "HAM_LUONG") { clm.Header.Caption = "Hàm Lượng"; } else if (clm.Header.Caption == "HOAT_CHAT") { clm.Header.Caption = "Hoạt Chất"; } else if (clm.Header.Caption == "DONG_GOI") { clm.Header.Caption = "Đóng Gói"; } else { clm.Hidden = true; } } } }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["Descripción"].Width = 280; e.Layout.Bands[0].Columns["diasStock"].Hidden = true; e.Layout.Bands[0].Columns["Stock"].Format = "N0"; e.Layout.Bands[0].Columns["Solicitado"].Format = "N0"; e.Layout.Bands[0].Columns["diasStock"].Format = "N0"; e.Layout.Bands[0].Columns["Límite"].Format = "N0"; e.Layout.Bands[0].Columns["Ideal"].Format = "N0"; e.Layout.Bands[0].Columns["Monto"].Format = "C2"; e.Layout.Bands[0].Columns["Stock"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Solicitado"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Ideal"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["diasStock"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Límite"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Monto"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Fecha de arribo"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; foreach (var item in e.Layout.Bands[0].Columns) { item.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; } }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { foreach (var item in dgvDatos.DisplayLayout.Bands[0].Columns) { item.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; } //e.Layout.Bands[0].Columns["ItemCode"].Header.Caption = "Artículo"; //e.Layout.Bands[0].Columns["ItemName"].Header.Caption = "Descripción"; //e.Layout.Bands[0].Columns["ItmsGrpNam"].Header.Caption = "Línea"; //e.Layout.Bands[0].Columns["ListName"].Header.Caption = "Lista de precios"; //e.Layout.Bands[0].Columns["PriceList"].Hidden = true; //e.Layout.Bands[0].Columns["Precio con Descuento"].Header.Caption = "Precio Final"; //e.Layout.Bands[0].Columns["Factor con Descuento"].Header.Caption = "Factor Final"; //e.Layout.Bands[0].Columns["Precio Original"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; //e.Layout.Bands[0].Columns["Precio con Descuento"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; //e.Layout.Bands[0].Columns["Factor original"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; //e.Layout.Bands[0].Columns["Factor con Descuento"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; //e.Layout.Bands[0].Columns["Precio Original"].Format = "C4"; //e.Layout.Bands[0].Columns["Precio con Descuento"].Format = "C4"; //e.Layout.Bands[0].Columns["Factor original"].Format = "N4"; //e.Layout.Bands[0].Columns["Factor con Descuento"].Format = "N4"; }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["DocNum"].Header.Caption = "Número de OV"; e.Layout.Bands[0].Columns["CardCode"].Header.Caption = "Cliente"; e.Layout.Bands[0].Columns["CardName"].Header.Caption = "Nombre"; e.Layout.Bands[0].Columns["DocDate"].Header.Caption = "Fecha de contabilización"; e.Layout.Bands[0].Columns["DocTime"].Header.Caption = "Inicio"; e.Layout.Bands[0].Columns["Tiempo"].Header.Caption = "Tiempo (hh:mm:ss)"; e.Layout.Bands[0].Columns["PymntGroup"].Header.Caption = "Condición de pago"; e.Layout.Bands[0].Columns["Entregado"].Header.Caption = "Quitar"; e.Layout.Bands[0].Columns["DocTime"].Format = "hh:mm tt"; e.Layout.Bands[0].Columns["Tiempo"].Format = "hh:mm"; e.Layout.Bands[0].Columns["DocTime"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center; e.Layout.Bands[0].Columns["Tiempo"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center; e.Layout.Bands[0].Columns["DocEntry"].Hidden = true; e.Layout.Bands[0].Columns["IdAlmacenista"].Hidden = true; e.Layout.Bands[0].Columns["Series"].Hidden = true; e.Layout.Bands[0].Columns["U_TPedido"].Hidden = true; e.Layout.Bands[0].Columns["Entregado"].Width = 50; e.Layout.Bands[0].Columns["Prioridad"].Width = 83; e.Layout.Bands[0].Columns["DocNum"].Width = 90; e.Layout.Bands[0].Columns["Estatus"].Width = 90; e.Layout.Bands[0].Columns["CardCode"].Width = 80; e.Layout.Bands[0].Columns["DocDate"].Width = 105; e.Layout.Bands[0].Columns["PymntGroup"].Width = 120; e.Layout.Bands[0].Columns["CardName"].Width = 350; e.Layout.Bands[0].Columns["Asignado"].Width = 200; e.Layout.Bands[0].Columns["DocTime"].Width = 100; e.Layout.Bands[0].Columns["Tiempo"].Width = 100; e.Layout.Bands[0].Columns["Entregado"].Width = 60; e.Layout.Bands[0].Columns["Imprimir"].Width = 60; e.Layout.Bands[0].Columns["Imprimir"].Hidden = true; e.Layout.Bands[0].Columns["DocEntry"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["DocNum"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["CardCode"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["CardName"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["DocDate"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["DocTime"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["Tiempo"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["Estatus"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["PymntGroup"].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns["DocEntry"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; e.Layout.Bands[0].Columns["DocNum"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; e.Layout.Bands[0].Columns["CardCode"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; e.Layout.Bands[0].Columns["CardName"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; e.Layout.Bands[0].Columns["DocDate"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; e.Layout.Bands[0].Columns["DocTime"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; e.Layout.Bands[0].Columns["Tiempo"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; e.Layout.Bands[0].Columns["Asignado"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; e.Layout.Bands[0].Columns["Estatus"].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; }
private void dgvTraspaso_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { foreach (Infragistics.Win.UltraWinGrid.UltraGridColumn column in e.Layout.Bands[0].Columns) { column.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; } e.Layout.Bands[0].Columns[0].Hidden = true; }
private void GrdDepartments_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { //GrdDepartments.DisplayLayout.Bands[0].Columns["CRD_NO"].Hidden = true; GrdDepartments.DisplayLayout.Bands[0].Columns["CRD_NO"].Header.Caption = "Employee No"; GrdDepartments.DisplayLayout.Bands[0].Columns["CRD_NAME"].Header.Caption = "Employee Name"; GrdDepartments.DisplayLayout.Bands[0].Columns["FROM_HOUR"].Header.Caption = "Shift Start"; GrdDepartments.DisplayLayout.Bands[0].Columns["TO_HOUR"].Header.Caption = "Shift End"; }
private void ultraGridRepPartList_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { //Infragistics.Win.UltraWinGrid.UltraGridLayout layout = e.Layout; //Infragistics.Win.UltraWinGrid.UltraGridBand band = layout.Bands[0]; //Infragistics.Win.UltraWinGrid.UltraGridColumn imageColumn = band.Columns.Add("Del"); //imageColumn.DataType = typeof(Image); //imageColumn.Style = Infragistics.Win.UltraWinGrid.ColumnStyle.Image; }
private void ultraGridMain_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraWinGridHelper ultraWinGridHelper = new UltraWinGridHelper(this.ultraGridMain); ultraWinGridHelper.AddCommonColumn("runningcard", "产品序列号"); ultraWinGridHelper.AddCommonColumn("result", "测试结果"); // foreach(UltraGridBand ub in ultraGridMain.co }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns[1].Width = 300; e.Layout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[1].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[2].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[3].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { foreach (var item in e.Layout.Bands[0].Columns) { item.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; } e.Layout.Bands[0].Columns["DocEntry"].Hidden = true; }
private void grdMain_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraWinGridHelper gridHelper = new UltraWinGridHelper(this.grdMain); gridHelper.AddCommonColumn("Input", "采集对象号码"); gridHelper.AddCommonColumn("CollectType", "CollectType"); gridHelper.AddCommonColumn("SwitchType", "SwitchType"); gridHelper.AddCommonColumn("ItemCode", "产品代码"); gridHelper.AddCommonColumn("Count", "产品数量"); }
private void ultraGridTry_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { ultraWinGridHelper = new UltraWinGridHelper(this.ultraGridTry); ultraWinGridHelper.AddCheckColumn("Checked", ""); ultraWinGridHelper.AddReadOnlyColumn("TryCode", "试流单号"); ultraWinGridHelper.AddReadOnlyColumn("PlanQty", "计划数量"); ultraWinGridHelper.AddReadOnlyColumn("ActualQty", "实际数量"); ultraWinGridHelper.AddReadOnlyColumn("Memo", "备注"); }
private void ultraGridDetail_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraWinGridHelper ultraWinGridHelper = new UltraWinGridHelper(this.ultraGridDetail); //ultraWinGridHelper.AddCheckColumn("checkbox", "*"); //ultraWinGridHelper.AddCommonColumn(); e.Layout.Bands[0].Columns["runningcard"].Header.Caption = "产品序列号"; e.Layout.Bands[0].Columns["runningcard"].Width = 200; //this.InitGridLanguage(ultraGridDetail); }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { foreach (var item in e.Layout.Bands[0].Columns) { item.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; } e.Layout.Bands[0].Columns["Importe"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Importe"].Format = "C2"; }
private void udbAlmacenistas_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].ColHeadersVisible = false; e.Layout.Bands[0].Columns[0].Hidden = true; e.Layout.Bands[0].Columns[1].Width = 150; e.Layout.Bands[0].Columns[2].Hidden = true; e.Layout.Bands[0].Columns[1].CellAppearance.TextVAlign = Infragistics.Win.VAlign.Middle; }
//初始化Grid private void ultraGridDetail_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraWinGridHelper ultraWinGridHelper = new UltraWinGridHelper(this.ultraGridDetail); //ultraWinGridHelper.AddCheckColumn("checkbox", "*"); ultraWinGridHelper.AddCommonColumn("CartonCode", "箱号"); ultraWinGridHelper.AddCommonColumn("CartonQty", "装箱数量"); e.Layout.Bands[0].Columns["CartonCode"].Width = 140; e.Layout.Bands[0].Columns["CartonQty"].Width = 140; this.InitGridLanguage(ultraGridDetail); }
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["FN_ZZ_QUALIFIED_WEIGHT"].MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle.Always; e.Layout.Bands[0].Columns["FN_ZZ_QUALIFIED_WEIGHT"].MergedCellEvaluator = new CustomMergedCellEvaluatorWithBatchNo(); e.Layout.Bands[0].Columns["FN_ZZ_UNQUALIFIED_WEIGHT"].MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle.Always; e.Layout.Bands[0].Columns["FN_ZZ_UNQUALIFIED_WEIGHT"].MergedCellEvaluator = new CustomMergedCellEvaluatorWithBatchNo(); e.Layout.Bands[0].Columns["FN_ZZ_QUALIFIED_RATE"].MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle.Always; e.Layout.Bands[0].Columns["FN_ZZ_QUALIFIED_RATE"].MergedCellEvaluator = new CustomMergedCellEvaluatorWithBatchNo(); e.Layout.Bands[0].Columns["FN_ZZ_QUALIFIED_TRATE"].MergedCellStyle = Infragistics.Win.UltraWinGrid.MergedCellStyle.Always; e.Layout.Bands[0].Columns["FN_ZZ_QUALIFIED_TRATE"].MergedCellEvaluator = new CustomMergedCellEvaluatorWithBatchNo(); }
private void dgvDatos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns["Línea"].Header.Fixed = true; e.Layout.Bands[0].Columns["Proveedor"].Header.Fixed = true; e.Layout.Bands[0].Columns["Artículo"].Header.Fixed = true; e.Layout.Bands[0].Columns["Descripción"].Header.Fixed = true; e.Layout.Bands[0].Columns["Proveedor"].Width = 140; e.Layout.Bands[0].Columns["Descripción"].Width = 140; e.Layout.Bands[0].Columns["Promedio ultimos 4 meses"].Width = 95; e.Layout.Bands[0].Columns["Ideal sugerido"].Width = 95; e.Layout.Bands[0].Columns["Faltante"].Width = 95; e.Layout.Bands[0].Columns["Stock"].Format = "N0"; e.Layout.Bands[0].Columns["Stock $"].Format = "C0"; e.Layout.Bands[0].Columns["Ideal"].Format = "N0"; e.Layout.Bands[0].Columns["Veces Ideal"].Format = "N2"; e.Layout.Bands[0].Columns["Meses"].Format = "N0"; e.Layout.Bands[0].Columns["Mes6"].Format = "N0"; e.Layout.Bands[0].Columns["Mes5"].Format = "N0"; e.Layout.Bands[0].Columns["Mes4"].Format = "N0"; e.Layout.Bands[0].Columns["Mes3"].Format = "N0"; e.Layout.Bands[0].Columns["Mes2"].Format = "N0"; e.Layout.Bands[0].Columns["Mes1"].Format = "N0"; e.Layout.Bands[0].Columns["Mes actual"].Format = "N0"; e.Layout.Bands[0].Columns["Stock"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Stock $"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Ideal"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Veces Ideal"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Meses"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Promedio ultimos 4 meses"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Ideal sugerido"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Faltante"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Mes6"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Mes5"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Mes4"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Mes3"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Mes2"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Mes1"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Promedio ultimos 4 meses"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Ideal sugerido"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Faltante"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; e.Layout.Bands[0].Columns["Mes actual"].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Right; foreach (var item in e.Layout.Bands[0].Columns) { item.CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; } }
private void dgvArribos_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { e.Layout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[1].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[2].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit; e.Layout.Bands[0].Columns[0].Width = 130; e.Layout.Bands[0].Columns[1].Width = 100; e.Layout.Bands[0].Columns[2].Width = 100; e.Layout.Bands[0].Columns[1].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center; e.Layout.Bands[0].Columns[2].CellAppearance.TextHAlign = Infragistics.Win.HAlign.Center; }