/// <summary> /// Sets the selection. /// </summary> /// <param name="entityType">Type of the entity.</param> /// <param name="controls">The controls.</param> /// <param name="selection">The selection.</param> public override void SetSelection(Type entityType, Control[] controls, string selection) { var values = selection.Split('|'); DropDownList ddlCompare = controls[0] as DropDownList; NumberBox nbValue = controls[1] as NumberBox; if (values.Length >= 2) { ComparisonType comparisonType = ( ComparisonType )(values[0].AsInteger()); ddlCompare.SelectedValue = comparisonType.ConvertToInt().ToString(); nbValue.Text = values[1]; } }