Member 14192597 wrote:
I was wondering if I could have a gridlayout file for each user, rather than a database because I don't need to store the data for a later time (after the user is finished with the app)
You can have a grid, regardless of the source of the data. You might also want to persist the data anyway - if it crashes and the user has to enter it all over again, they will not be very happy. Also, what if I want to make a small change to see the impact on the result? Do I have to enter all data again?
Member 14192597 wrote:
However because the number of windows "forms" for each user will be different, and so the number of values added to the list/database/file is not a set amount, I'm trying to figure out how to tell C# to go through each window, pick out the value from that window, add it to the list/database/file, find the average, and display that to a textbox on the a final window.
Ehr.. first you decide how to store that data in memory. Make it a list, you can add options to save/fetch that list later. To go through each form, you could use a list of forms that you loop. Each form should make its data available through public properties. Add data from form to datalist (not formlist), and at end use in-memory linq to get an average. Good luck :thumbsup:
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] "If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.