Q:

How to Save GridView Data's to Access Database in Winforms DevExpress?

I Have GridView in the Form and Attached DataSource to it. 1st Column having Repository_Grid_Lookup_Edit and Attached DataSource to it. I perform Some Calculation and Obtain some results. So now Totally 5 Rows and 6 Columns in the gridView. I have Save Button in the same Form, If i click Save Button I want to Store All this Data's to New Table in the GridView ?? How to Complete my Task.
Thanks in Advance.
Sri 

A:

The GridView is just a View on the datas which you DataSource holds. So if you change some value in the GridView the underlying DataSource automaticly changes the value. I recommend you to build a class which represents one data set. Then you create a List<MyClass> and use this as DataSource. So your BusinessObjects change automaticly if someone edit a value in the Grid.
To your question:
If you want to show the data in a new Table just create a new Grid and populate the List<MyClass> again. If you want to show the saved data only clone you List<MyClass> on SaveButton Click and populate it.
I hope i understand you. If you need further help i post an short example.
regards

