You must configure the data source so that it supports the automatic operations.
A class marked [Serializable] would have code added to save and load a saved object automatically. The true parameter marks the field as a primary key, which will automatically add the field name to the “Data Key Names” list of the Grid View.
A very simple class for a Person could look like this: If you’ve not seen the [ ] syntax before, these are Attributes.
This simple markup tells the compiler additional information about the entity, which is then used to generate additional code.
First and foremost, data source controls are not the only way to bring data into an application.
A data source control is just one of many controls in the ASP.