protected void POGrid_BeforeGetCallbackResult(object sender, EventArgs e) { ASPxGridView grid = sender as ASPxGridView; DesignBehavior.SetBehaviorGrid(grid); if (grid.IsEditing) { if (!grid.IsNewRowEditing) { ASPxPageControl pageControl = POGrid.FindEditFormTemplateControl("GridPageControl") as ASPxPageControl; ASPxCheckBox checkbox = pageControl.FindControl("AllowPassword") as ASPxCheckBox; ASPxLabel lbl = pageControl.FindControl("AllowLbl") as ASPxLabel; //ASPxTextBox pword = pageControl.FindControl("Pword") as ASPxTextBox; checkbox.Checked = true; checkbox.ClientVisible = true; lbl.ClientVisible = true; } } }
protected void POAddEditGrid_BeforeGetCallbackResult(object sender, EventArgs e) { ASPxGridView grid = sender as ASPxGridView; DesignBehavior.SetBehaviorGrid(grid); }