By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,089 Members | 1,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,089 IT Pros & Developers. It's quick & easy.

DataBindings

P: 1
Hi all,

I'm having a problem binding two object properties to properties of another object. The code below works as expected when only one binding is added but doesn't work at all (still compiles) when both bindings are added.

Expand|Select|Wrap|Line Numbers
  1. MyUserControl.DataBindings.Clear();
  2.  
  3. MyUserControl.DataBindings.Add(
  4.     "Operand", MyFilter, "MyOperand", false,
  5.     DataSourceUpdateMode.OnPropertyChanged);
  6.  
  7. MyUserControl.DataBindings.Add(
  8.     "Operator", MyFilter, "MyFilterType", true, 
  9.     DataSourceUpdateMode.OnPropertyChanged);

Anyone have any ideas for me to try?

Thanks in advance!
Jan
Jan 8 '09 #1
Share this Question
Share on Google+
1 Reply


P: 79
Try Defining Datasource for them first.
Let me know if it works
Jan 9 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.