protected void ASPxGridView1_HtmlEditFormCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditFormEventArgs e) { if (!ASPxGridView1.IsNewRowEditing && ASPxGridView1.IsEditing) { //主键不可以修改 (ASPxGridView1.FindEditFormTemplateControl("txtCCode") as ASPxTextBox).Enabled = false; } }
protected void ASPxGridView1_HtmlEditFormCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditFormEventArgs e) { ASPxGridLookup gridLookupUser = ASPxGridView1.FindEditFormTemplateControl("GridLookupUser") as ASPxGridLookup; gridLookupUser.GridView.Width = 250; ASPxGridLookup gridLookupRole = ASPxGridView1.FindEditFormTemplateControl("GridLookupRole") as ASPxGridLookup; gridLookupRole.GridView.Width = 250; }
protected void ASPxGridView2_HtmlEditFormCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditFormEventArgs e) { if (!ASPxGridView2.IsNewRowEditing && ASPxGridView2.IsEditing) { //主键不可以修改 (ASPxGridView2.FindEditFormTemplateControl("txtAlineCode") as ASPxTextBox).Enabled = false; ////按照之前开发的样子,生产线也不可以修改 (ASPxGridView2.FindEditFormTemplateControl("ASPxComboBox1") as ASPxComboBox).Enabled = false; } }
protected void GrdVwResponsablesAdmin_HtmlEditFormCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditFormEventArgs e) { GridViewHtmlEditFormPopupContainer container; container = (GridViewHtmlEditFormPopupContainer)e.EditForm; ASPxPopupControl popup; popup = (ASPxPopupControl)container.NamingContainer; popup.HeaderStyle.BackgroundImage.ImageUrl = "~/Images/fondo_ladrillo.jpg"; }
protected void ASPxGridView1_HtmlEditFormCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditFormEventArgs e) { ASPxTextEdit editor = (ASPxTextEdit)ASPxGridView1.FindEditFormTemplateControl("ASPxTextBox1"); // EditForm is open for editing if (Request.Params[editor.UniqueID] == null) { editor.Text = DateTime.Now.ToLongTimeString(); } // else // the EditForm is recreated before the Update command is processed. }
protected void GrdVwTicketsU_HtmlEditFormCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditFormEventArgs e) { GridViewHtmlEditFormPopupContainer container; container = (GridViewHtmlEditFormPopupContainer)e.EditForm; ASPxPopupControl popup; popup = (ASPxPopupControl)container.NamingContainer; popup.HeaderStyle.BackgroundImage.ImageUrl = "~/Images/fondo_ladrillo.jpg"; //popup.HeaderStyle.ForeColor = Drawing.Color.White; }
protected void ASPxGridView1_HtmlEditFormCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditFormEventArgs e) { ASPxComboBox combo2 = ((ASPxComboBox)ASPxGridView1.FindEditFormTemplateControl("Cat2")); if (Request.Params[combo2.UniqueID] != null) { return; } if (!ASPxGridView1.IsNewRowEditing) { object[] vals = (object[])ASPxGridView1.GetRowValues(ASPxGridView1.EditingRowVisibleIndex, new string[] { "Category2ID", "Category3ID", "Category4ID" }); ASPxComboBox combo4 = ((ASPxComboBox)ASPxGridView1.FindEditFormTemplateControl("Cat4")); ASPxComboBox combo3 = ((ASPxComboBox)ASPxGridView1.FindEditFormTemplateControl("Cat3")); combo2.Value = vals[0]; combo3.Value = vals[1]; combo4.Value = vals[2]; } }
protected void ASPxGridView1_HtmlEditFormCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditFormEventArgs e) { if (!ASPxGridView1.IsNewRowEditing && ASPxGridView1.IsEditing) { ASPxComboBox PlineCode = ASPxGridView1.FindEditFormTemplateControl("PlineCombo") as ASPxComboBox; ASPxComboBox StationCode = ASPxGridView1.FindEditFormTemplateControl("StationCombo") as ASPxComboBox; //主键不可以修改 (ASPxGridView1.FindEditFormTemplateControl("txtSpecialCode") as ASPxTextBox).Enabled = false; PlineCode.Enabled = false; string SelectPlineCode = this.ASPxGridView1.GetRowValues(ASPxGridView1.FocusedRowIndex, "PLINE_CODE").ToString(); string SelectStationCode = this.ASPxGridView1.GetRowValues(ASPxGridView1.FocusedRowIndex, "STATION_CODE").ToString(); PlineCode.Value = SelectPlineCode; StationCode.Value = SelectStationCode; FillStationCodeCombo(PlineCode.Value.ToString()); } }
protected void gridResellerGroups_HtmlEditFormCreated(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewEditFormEventArgs e) { }