Controls Binding

  • Thread starter Thread starter P. Marcello Genuini
  • Start date Start date
P

P. Marcello Genuini

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
 
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.
 
Back
Top