freename
asked on
Design question - What event to use for updating comboboxes on multitab tabcontrol
This is simply a design question. I'm seeking advice. I have a single windows form with a tabcontrol containing two tabpages. The tabpages have an assortment of controls including comboboxes. Design and performance wise, where is the best place to put the code that binds the comboboxes to their respective datasources?
Yeah, if it's simplicity that you're going for just put it in the codebehind.
Well, we haven't even about application type, so we can't assume that there is going to be a web page with a code-behind.
Bob
Bob
That's true, lol, didn't even check. I assumed. You know what happens when we assume...
ASKER
Thanks for the replies. This is a Windows Form, so there is now codebehind. I also use a DataAccessLayer class to do the the Database work and the form is just to display the collection of data to the user. Therefore, my question was, when I go to display some of this data in ComboBoxes, where is the best place to do it; form_load event, tabpage_layout or some other. I'm doing some in the load event, the stuff that needs to be displayed immediately and some in the layout event for the tabpage. I just want to know if there is a "Best Practice" for this.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Bob