using a treeview.bindingcontext

  • Thread starter Thread starter csadlier
  • Start date Start date
C

csadlier

Hi All,
I am trying to use the treeview binding sample for C# and every time
the program hits the line :
this.m_currencyManager = (CurrencyManager)
this.BindingContext[value];


this.m_currencyManager is undefined.
this.BindingContext is undefined
value=a dataview sent from a windows form application to a
webservice.
this = a treeview inherited usercontrol.


It blows up with this error:
A first chance exception of type
'System.NullReferenceException­'
occurred in webservice.dll


Additional information: Object reference not set to an instance of

an object.


Has anyone had this problem? I'm beginning to think Binding context is
not too useful, especially with treeview controls, from the listings I
have seen.
Thanks,
Carl
 

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

Back
Top