Can I enumerate a BindingContext?

  • Thread starter Thread starter Martin Hart - Memory Soft, S.L.
  • Start date Start date
M

Martin Hart - Memory Soft, S.L.

Hi:

Is it possible to enumerate a BindingContext, returning all its
BindingManagerBase objects so I can recover all the DataBindings from the
returned object?

All I can see is the indexer (BindindContext[DataSource]) where I need to
pass a DataSource to recover the BindingManagerBase object, but I don't have
the DataSource, this is why I need to enumerate all of them.

TIA,
MartinH.
 
Martin:

BindingContext does implement the IEnumerable interface and therefore you
should be able to enumerate the BindingManagerBase objects.

--
David Lloyd
MCSD .NET
http://LemingtonConsulting.com

This response is supplied "as is" without any representations or warranties.


"Martin Hart - Memory Soft, S.L." <memorysoftsl _at_ infotelecom _dot_ es>
wrote in message Hi:

Is it possible to enumerate a BindingContext, returning all its
BindingManagerBase objects so I can recover all the DataBindings from the
returned object?

All I can see is the indexer (BindindContext[DataSource]) where I need to
pass a DataSource to recover the BindingManagerBase object, but I don't have
the DataSource, this is why I need to enumerate all of them.

TIA,
MartinH.
 
Back
Top