Im using c# 2008 winforms.
Ive found it very frustrating trying to find the best practice way to use datasets and datagridviews in winforms apps in general to achieve the results i want.
Basically i want to (and this is the generic methodology i want to use in all my applications) 1. populate a dataset from a sql table 2. populate a datagridview from the dataset 3. some columns in the datagridview will be calculated results from the dataset fields 4. edit data in the datagridview and have the edits synced back to the dataset source. 5. edits in the datagridview are only updated to the database source via stored procedures on the database, i never use the sqlAdaptor.update method 6.I want a bottom footer of summed column totals in the datagridview 7.I want a column to show all row summed totals
I can do all these individual things but am very frustrated to find my code ends up all over the place and different on wether i want all the above or just some of them.
For example i could sync information between the datagridview and the dataset, by binding the dataset to the datagridview but then i cant have custom columns and custom rows in the datagridview etc etc.
Its all very frustrating and i was hoping to get pointed to some best practice methods for achieving optimum results with the above. Any advice appreciated.
Thanks in advance