Hello Every body,
I face a problem about data pickup from datasource. ok i try to explain it first. Some my ui have different combo box. comboboxes contain data like Panel, Reader, Badge etc devices. each combobox contain single object data. in left side of every combo, one check box item is there. if combo box will checked then combo box will be enabled and show its data other wise not. In that senario user may check all checkbox or not any singel check box. It totally depends on the user. In that senario what i did, I pickup all data from database and bind it to the combo box when form first time loaded. that means loading time of form i request to my business layer to give me all data. Is it correct approach. Thanks for advance help.
Only 3 things can reach you to success. 1. Industry 2. Industry 3. Industry

Data pickup Issue
C McQuade
Hi Ahasan,
There's rarely only one correct answer. In software architecture/design you often face multiple options and have to make a trade-off. The approach you have chosen has a couple of benefits as well as drawback. Polulating all combos on initial load allows you to reduce the number of newwork round-trips and the number of queries to the database. On the other hand, you waste resources by retrieving data that nobody asks for (for the combos that the user never checks). If you have a lot of combos with a lot of data, your approach slows down the initial load but increases responsiveness as user checks/un-checks combos. For me good architecture/design is about knowing your options, their pros/cons and choose the one that best meets your objectives/requirements.
-Michel
Sabrecat