I can usually find information on how to do something I'm unfamiliar with. I tend to struggle more with the "when" and "why" of doing things. For instance, if I pull database information into a DataTable, what considerations should be taken when deciding if I'm going to use the data directly from the DataTable or if I need to create a class for the information? Right now I make my decision primarily based on whether or not I need to pass the information around to other classes. Are there other considerations to this? Some other related questions:
- If I use classes, is it more common to bind raw data to a DataGridView and create individual class instances as needed or to create a collection of classes and bind that to the DataGridView?
- ListBoxes and Comboboxes: I've taken to populating these with class instances so I have direct access to attribute data instead of taking the list entry and using that as a lookup into some other data. So again, when is this appropriate?
Also, any related books/articles/links you can provide would be great!
- If I use classes, is it more common to bind raw data to a DataGridView and create individual class instances as needed or to create a collection of classes and bind that to the DataGridView?
- ListBoxes and Comboboxes: I've taken to populating these with class instances so I have direct access to attribute data instead of taking the list entry and using that as a lookup into some other data. So again, when is this appropriate?
Also, any related books/articles/links you can provide would be great!