private void AddCheckBoxFilter(string AnItemName) { TIndividualFilterFindPanel iffp; CheckBox chkAny = new CheckBox(); chkAny.Name = "chk" + AnItemName; chkAny.Text = AnItemName; iffp = new TIndividualFilterFindPanel( null, TCloneFilterFindControl.ShallowClone <CheckBox>(chkAny, TFilterPanelControls.FILTER_NAME_SUFFIX), null, "bit", "HasManualFilter"); FFilterAndFindObject.FilterPanelControls.FStandardFilterPanels.Add(iffp); }
private void CreateFilterFindPanelsManual() { Label lblDescription = new Label(); lblDescription.Name = "lblDescription"; lblDescription.Text = "Description"; TextBox txtDescription = new TextBox(); txtDescription.Name = "txtDescription"; TIndividualFilterFindPanel iffp = new TIndividualFilterFindPanel( TCloneFilterFindControl.ShallowClone <Label>(lblDescription, TFilterPanelControls.FILTER_NAME_SUFFIX), TCloneFilterFindControl.ShallowClone <TextBox>(txtDescription, TFilterPanelControls.FILTER_NAME_SUFFIX), "Parent_a_account_code_short_desc_c", "varchar", String.Empty); FFilterAndFindObject.FilterPanelControls.FStandardFilterPanels.Add(iffp); }