Hi, I have a checkbox that I have added to a descendant user control. I am
binding the checkbox to the dataset on the ancestor control. Any changes
made to the checkbox is not being picked up in my update. No error is
thrown. I ran through the debugger and compared the difference between the
binding of the checkbox on the descendant and a checkbox I have on the
ancestor. I have pasted the BindingManagerBase property for the two
checkboxes for your review. I retrieved this information running the
solution in Debug mode. From comparing the two property listing, the
descendant checkbox binding doesn't pickup the DataRowView and gets an
IndexOutOfRangeException error. However this error was not thrown during
execution. I only found it while checking for the BindingManagerBase
Property in the Debugging immediate window.
BindingManagerBase Property for descendant checkbox:
{System.Windows.Forms.RelatedCurrencyManager}
[System.Windows.Forms.RelatedCurrencyManager]:
{System.Windows.Forms.RelatedCurrencyManager}
System.Object: {System.Windows.Forms.RelatedCurrencyManager}
Bindings: {System.Windows.Forms.ListManagerBindingsCollection}
bindings: {System.Windows.Forms.ListManagerBindingsCollection}
BindType: {"System.Data.DataView"}
Count: 0
Current: <error: an exception of type: {System.IndexOutOfRangeException}
occurred>
DataSource: {System.Data.DataView}
IsBinding: false
onCurrentChangedHandler: <undefined value>
onPositionChangedHandler: <undefined value>
Position: -1
pullingData: false
BindingManagerBase Property for ancestor checkbox:
{System.Windows.Forms.RelatedCurrencyManager}
[System.Windows.Forms.RelatedCurrencyManager]:
{System.Windows.Forms.RelatedCurrencyManager}
System.Object: {System.Windows.Forms.RelatedCurrencyManager}
Bindings: {System.Windows.Forms.ListManagerBindingsCollection}
bindings: {System.Windows.Forms.ListManagerBindingsCollection}
BindType: {"System.Data.DataView"}
Count: 1
Current: {System.Data.DataRowView}
DataSource: {System.Data.DataView}
IsBinding: true
onCurrentChangedHandler: <undefined value>
onPositionChangedHandler: <undefined value>
Position: 0
pullingData: false