General information
Title:
Clearing databinding - Cycling through containers?
HI,
I want to clear databinding on all controls on a windows form. My problem is that sometimes a control is contained in another one (group box, tab pages). I know I can cycle through my controls using a foreach loop or a for loop but the problem is that there may be many levels of contained controls (textbox within a tab page within a group box). Is there an efficient way to clear the databindings of my controls contained within others? I could use recursivity but I then need to know if the control contains other control.
Thank you for your help,
Christian Cote
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only