Hi, i'm new at using windows forms... I normally allways build a web application.
Now i have a question about how to save changes made to a record displayed in a LayoutView of the XtraGrid.
In the web i do this as following:
1. Create the gridview, assign the Fieldnames to the columns, assign the Update & Insert & Delete Methods (OnRowInserting, OnRowUpdating, OnRowDeleting)
2. In code behind set the datasource for my gridview and handle all changes their when the user press the Update/Delete/Insert buttons
Now how can i do this with the XtraGrid?
As there is no edit button, i created my own add & delete button which works fine.
But the problem is with at the Edit site...
How can i create my own update method for the XtraGrid, my datasource is a simple List<T>
gridControl1.DataSource = AlgemeenGegevenManager.GetPersonen();
public static List<AlgemeenGegeven> GetPersonen()
Is there any property that keeps track of the record being changed, which i then could check when the user closes the form OR navigates to another record. If that property is true then i would save the record using my own custom update method...
Is this possible?