protected void aspxgvAgents_CellEditorInitialize(object sender, DevExpress.Web.ASPxGridViewEditorEventArgs e) { if (e.Column.FieldName == "AgentId" && aspxgvAgents.IsNewRowEditing) { e.Editor.ReadOnly = false; } }
protected void dgRecepcionDetalleNew_CellEditorInitialize(object sender, DevExpress.Web.ASPxGridViewEditorEventArgs e) { if (e.Column.FieldName == "Seleccion" || e.Column.FieldName == "CantidadRecibida") { e.Editor.ReadOnly = false; } }
protected void grdRoles_CellEditorInitialize(object sender, DevExpress.Web.ASPxGridViewEditorEventArgs e) { if (!grdRoles.IsNewRowEditing && e.Column.FieldName == "RoleName" && (e.Value.ToString() == "Master" || e.Value.ToString() == "Amerinode")) { e.Editor.Enabled = false; } }
/* Convert from TimeSpan to a proper Mask format */ protected void Grid_CellEditorInitialize(object sender, DevExpress.Web.ASPxGridViewEditorEventArgs e) { if (e.Column.FieldName == "Time") { e.Editor.Value = StringFromTimeSpan(e.Value); } }
protected void ASPxGridView1_CellEditorInitialize(object sender, DevExpress.Web.ASPxGridViewEditorEventArgs e) { if (e.Column.FieldName == "TaxOfficeId" && ASPxGridView1.IsNewRowEditing) { e.Editor.ReadOnly = false; } }
protected void ASPxgvTaxAccounts_CellEditorInitialize(object sender, DevExpress.Web.ASPxGridViewEditorEventArgs e) { if (ASPxgvTaxAccounts.IsNewRowEditing) { return; } if (e.Column.FieldName != "Status") { e.Editor.ReadOnly = true; } }
}// end of pisz protected void ASPxGridView1_CellEditorInitialize(object sender, DevExpress.Web.ASPxGridViewEditorEventArgs e) { e.Editor.ReadOnly = false; }