Re: Book recommendations for database development



Mike Margerum wrote:
Speaking of which, does anyone have any experience with devExpress grid and binding it to either delphi tlist type structures or C++ SQL structures? I'd like to get rid of the dataset layer altogether.

Do it all the time here.

You need to derive a data source class off of TcxCustomDataSource and override a few procedures - GetRecordCount, GetValue and SetValue (if the grid data can be changed by the user).

The data source class has a container (ofter a TList) that contains one item for each grid row. GetRecordCount reurns the number of enties in this list. GetValue returns a specific attribute of a particulat list entry and SetValue changes that attribute.

Assign the a data source class to the DataController.CustomDataSource property of the TcxGridTableView and call its DataChanged procedure.

Keith
.