Can I enumerate a BindingContext?

  • Thread starter Martin Hart - Memory Soft, S.L.
  • 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.
 
D

David Lloyd

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.
 
M

Martin Hart - Memory Soft, S.L.

David:

I missed that, thanks for the reminder :)

Regards,
Martin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top