Controls Binding

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • P. Marcello Genuini

    Controls Binding

    Hi everybody,
    i'm new at c# and i have this problem.....

    I have a form with a toolbar that perform operation on a dataset (Edit,
    Insert, Delete, Move, etc, etc,)

    I'd like to do that: when the user press a button on a toolbar, the
    application must check if the activecontrol on the form has databinding with
    a datasource (usually a dataview) and if yes to perform the operation on
    that specific datasource..... ..
    On the form i might have controls with binding on different datasource, and
    different kind of controls (DataGrid, TextBoxes, ComboBoxes, etc, etc,)

    Thanks in Advance


  • Dmitriy Lapshin [C# / .NET MVP]

    #2
    Re: Controls Binding

    Hi,

    Each control maintains a collection of Binding classes. This collection
    should be accessible through the Bindings property. You can probably inspect
    this collection for each of the controls.

    --
    Dmitriy Lapshin [C# / .NET MVP]
    X-Unity Test Studio

    Bring the power of unit testing to VS .NET IDE

    "P. Marcello Genuini" <mgenuini@tinn. it> wrote in message
    news:le2sb.4361 $9_.203007@news 1.tin.it...[color=blue]
    > Hi everybody,
    > i'm new at c# and i have this problem.....
    >
    > I have a form with a toolbar that perform operation on a dataset (Edit,
    > Insert, Delete, Move, etc, etc,)
    >
    > I'd like to do that: when the user press a button on a toolbar, the
    > application must check if the activecontrol on the form has databinding[/color]
    with[color=blue]
    > a datasource (usually a dataview) and if yes to perform the operation on
    > that specific datasource..... ..
    > On the form i might have controls with binding on different datasource,[/color]
    and[color=blue]
    > different kind of controls (DataGrid, TextBoxes, ComboBoxes, etc, etc,)
    >
    > Thanks in Advance
    >
    >[/color]

    Comment

    Working...