Search Results for

    Show / Hide Table of Contents

    Class DataSelectorControl

    Represents the control with two lists (available items and selected items).

    Inheritance
    System.Object
    Base
    ComponentBase
    DialogComponentBase
    DialogControl
    DataFilterBaseControl
    DataSelectorControl
    Implements
    IFRSerializable
    IHasEditor
    Inherited Members
    DataFilterBaseControl.DataLoaded
    DataFilterBaseControl.DataColumn
    DataFilterBaseControl.ReportParameter
    DataFilterBaseControl.FilterOperation
    DataFilterBaseControl.DetailControl
    DataFilterBaseControl.DataLoadedEvent
    DataFilterBaseControl.GetListOfData(DataSourceBase, Column)
    DataFilterBaseControl.OnFilterChanged()
    DataFilterBaseControl.OnEnabledChanged()
    DataFilterBaseControl.InitializeControl()
    DataFilterBaseControl.FillData()
    DataFilterBaseControl.FillData(DataSourceBase)
    DataFilterBaseControl.FillData(DataFilterBaseControl)
    DataFilterBaseControl.FilterData()
    DataFilterBaseControl.ResetFilter()
    DataFilterBaseControl.OnDataLoaded(EventArgs)
    DialogControl.ShouldSerializeBackColor()
    DialogControl.ShouldSerializeCursor()
    DialogControl.ShouldSerializeFont()
    DialogControl.ShouldSerializeForeColor()
    DialogControl.GetSelectionPoints()
    DialogControl.DrawSelectionPoint(Graphics, Pen, Brush, Single, Single)
    DialogControl.CheckParent(Boolean)
    DialogControl.DrawSelection(FRPaintEventArgs)
    DialogControl.InvokeEditor()
    DialogControl.OnBeforeInsert(Int32)
    DialogControl.Click
    DialogControl.DoubleClick
    DialogControl.Enter
    DialogControl.Leave
    DialogControl.KeyDown
    DialogControl.KeyPress
    DialogControl.KeyUp
    DialogControl.MouseDown
    DialogControl.MouseMove
    DialogControl.MouseUp
    DialogControl.MouseEnter
    DialogControl.MouseLeave
    DialogControl.Resize
    DialogControl.TextChanged
    DialogControl.Paint
    DialogControl.Control
    DialogControl.BackColor
    DialogControl.Cursor
    DialogControl.Enabled
    DialogControl.Font
    DialogControl.ForeColor
    DialogControl.RightToLeft
    DialogControl.TabIndex
    DialogControl.TabStop
    DialogControl.Text
    DialogControl.Dock
    DialogControl.Anchor
    DialogControl.Visible
    DialogControl.BindableProperty
    DialogControl.ClickEvent
    DialogControl.DoubleClickEvent
    DialogControl.EnterEvent
    DialogControl.LeaveEvent
    DialogControl.KeyDownEvent
    DialogControl.KeyPressEvent
    DialogControl.KeyUpEvent
    DialogControl.MouseDownEvent
    DialogControl.MouseMoveEvent
    DialogControl.MouseUpEvent
    DialogControl.MouseEnterEvent
    DialogControl.MouseLeaveEvent
    DialogControl.ResizeEvent
    DialogControl.TextChangedEvent
    DialogControl.PaintEvent
    DialogControl.Left
    DialogControl.Top
    DialogControl.Dispose(Boolean)
    DialogControl.AttachEvents()
    DialogControl.DetachEvents()
    DialogControl.SetParent(Base)
    DialogControl.FinalizeControl()
    DialogControl.Focus()
    DialogControl.Hide()
    DialogControl.Show()
    DialogControl.OnClick(EventArgs)
    DialogControl.OnDoubleClick(EventArgs)
    DialogControl.OnEnter(EventArgs)
    DialogControl.OnLeave(EventArgs)
    DialogControl.OnKeyDown(KeyEventArgs)
    DialogControl.OnKeyPress(KeyPressEventArgs)
    DialogControl.OnKeyUp(KeyEventArgs)
    DialogControl.OnMouseDown(MouseEventArgs)
    DialogControl.OnMouseMove(MouseEventArgs)
    DialogControl.OnMouseUp(MouseEventArgs)
    DialogControl.OnMouseEnter(EventArgs)
    DialogControl.OnMouseLeave(EventArgs)
    DialogControl.OnResize(EventArgs)
    DialogControl.OnTextChanged(EventArgs)
    DialogControl.OnPaint(PaintEventArgs)
    DialogComponentBase.GetContextMenu()
    DialogComponentBase.Location
    DialogComponentBase.Size
    DialogComponentBase.Assign(Base)
    ComponentBase.AbsBottom
    ComponentBase.AbsBounds
    ComponentBase.AbsLeft
    ComponentBase.AbsRight
    ComponentBase.AbsTop
    ComponentBase.Bottom
    ComponentBase.Bounds
    ComponentBase.ClientSize
    ComponentBase.GroupIndex
    ComponentBase.Right
    ComponentBase.Tag
    ComponentBase.VisibleExpression
    ComponentBase.Printable
    ComponentBase.PrintableExpression
    ComponentBase.GetExpressions()
    ComponentBase.CalcVisibleExpression(String)
    FastReport.ComponentBase.CheckNegativeSize(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.DrawDragAcceptFrame(FastReport.Utils.FRPaintEventArgs, System.Drawing.Color)
    FastReport.ComponentBase.GetPreferredSize()
    FastReport.ComponentBase.GetSmartTag()
    FastReport.ComponentBase.HandleDoubleClick()
    FastReport.ComponentBase.HandleDragDrop(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleDragOver(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleKeyDown(System.Windows.Forms.Control, System.Windows.Forms.KeyEventArgs)
    FastReport.ComponentBase.HandleMouseDown(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleMouseHover(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleMouseMove(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleMouseUp(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.HandleMouseWheel(FastReport.Utils.FRMouseEventArgs)
    FastReport.ComponentBase.PointInObject(System.Drawing.PointF)
    FastReport.ComponentBase.DrawSelectionPoint(FastReport.Utils.FRPaintEventArgs, System.Drawing.Pen, System.Drawing.Brush, System.Single, System.Single)
    FastReport.ComponentBase.PointInSelectionPoint(System.Single, System.Single, System.Drawing.PointF)
    Base.Name
    Base.Restrictions
    Base.Flags
    Base.Parent
    Base.BaseName
    Base.ClassName
    Base.Report
    Base.Page
    Base.ChildObjects
    Base.AllObjects
    Base.ZOrder
    Base.IsAncestor
    Base.IsDesigning
    Base.IsPrinting
    Base.IsRunning
    Base.OriginalComponent
    Base.Disposed
    Base.SetProp(Base, Base)
    Base.FloatDiff(Single, Single)
    Base.DeserializeSubItems(FRReader)
    Base.ExtractDefaultMacros(String)
    Base.Dispose()
    Base.SetFlags(Flags, Boolean)
    Base.SetReport(Report)
    Base.SetName(String)
    Base.SetParentCore(Base)
    Base.FindObject(String)
    Base.CreateUniqueName()
    Base.Clear()
    Base.Deserialize(FRReader)
    Base.BaseAssign(Base)
    Base.AssignAll(Base)
    Base.HasParent(Base)
    Base.HasFlag(Flags)
    Base.HasRestriction(Restrictions)
    Base.InvokeEvent(String, Object)
    Base.OnAfterLoad()
    Base.GetCustomScript()
    Base.ExtractMacros()
    Base.IsHaveToConvert(Object)
    Base.GetConvertedObjects()
    Base.ForEachAllConvectedObjects(Object)
    FastReport.Base.IsSelected
    FastReport.Base.IsParentSelected
    FastReport.Base.Delete()
    FastReport.Base.OnAfterInsert(FastReport.InsertFrom)
    FastReport.Base.SelectionChanged()
    FastReport.Base.GetImageIndex()
    Namespace: FastReport.Dialog
    Assembly: FastReport.dll
    Syntax
    public class DataSelectorControl : DataFilterBaseControl, IDisposable, IFRSerializable, IHasEditor
    Remarks

    The control allows to select one or several items and then filter the datasource which it is connected to. All you need is to setup the DataColumn property.

    Constructors

    DataSelectorControl()

    Initializes a new instance of the DataSelectorControl class with default settings.

    Declaration
    public DataSelectorControl()

    Properties

    AutoFill

    This property is not relevant to this class.

    Declaration
    [Browsable(false)]
    public bool AutoFill { get; set; }
    Property Value
    Type Description
    System.Boolean

    AutoFilter

    This property is not relevant to this class.

    Declaration
    [Browsable(false)]
    public bool AutoFilter { get; set; }
    Property Value
    Type Description
    System.Boolean

    Height

    Gets or sets the height of the object.

    Declaration
    public override float Height { get; set; }
    Property Value
    Type Description
    System.Single
    Overrides
    DialogControl.Height
    Remarks

    This property value is measured in the screen pixels. Use Units class to convert a value to desired units.

    Sorted

    Gets or sets a value indicating that the items must be sorted.

    Declaration
    public bool Sorted { get; set; }
    Property Value
    Type Description
    System.Boolean

    Width

    Gets or sets the width of the object.

    Declaration
    public override float Width { get; set; }
    Property Value
    Type Description
    System.Single
    Overrides
    DialogControl.Width
    Remarks

    This property value is measured in the screen pixels. Use Units class to convert a value to desired units.

    Methods

    Draw(FRPaintEventArgs)

    Draws the object.

    Declaration
    public override void Draw(FRPaintEventArgs e)
    Parameters
    Type Name Description
    FRPaintEventArgs e

    Paint event args.

    Overrides
    DialogControl.Draw(FRPaintEventArgs)
    Remarks

    This method is widely used in the FastReport. It is called each time when the object needs to draw or print itself.

    In order to draw the object correctly, you should multiply the object's bounds by the scale parameter.

    cache parameter is used to optimize the drawing speed. It holds all items such as pens, fonts, brushes, string formats that was used before. If the item with requested parameters exists in the cache, it will be returned (instead of create new item and then dispose it).

    FillData(DataSourceBase, Column)

    Fills the control with data.

    Declaration
    protected override void FillData(DataSourceBase dataSource, Column column)
    Parameters
    Type Name Description
    DataSourceBase dataSource

    The data source.

    Column column

    The data column.

    Overrides
    DataFilterBaseControl.FillData(DataSourceBase, Column)

    GetValue()

    Returns value entered in the control.

    Declaration
    protected override object GetValue()
    Returns
    Type Description
    System.Object

    The value of type supported by this control.

    Overrides
    DataFilterBaseControl.GetValue()
    Remarks

    This method must return a value entered by the user. For example, TextBox control must return its Text property value. If this control supports multi-selection, return selected values in an array, for example string[] array for CheckedListBox.

    Serialize(FRWriter)

    Serializes the object.

    Declaration
    public override void Serialize(FRWriter writer)
    Parameters
    Type Name Description
    FRWriter writer

    Writer object.

    Overrides
    DataFilterBaseControl.Serialize(FRWriter)
    Remarks

    Do not call this method directly. You should override it if you are developing a new component for FastReport.

    This method is called when the object needs to save the state. It may happen when:

    • saving the report to the file or stream;
    • saving the report to the designer's undo buffer;
    • assigning the object to another object using the Assign(Base) or AssignAll methods;
    • saving the object to the designer's clipboard;
    • saving the object to the preview (when run a report).

    Implements

    IFRSerializable
    IHasEditor
    Back to top © 1998-2025 Copyright Fast Reports Inc.