Re: Book recommendations for database development
- From: keith Miller <no@xxxxxxxx>
- Date: Tue, 29 Apr 2008 15:29:15 +0100
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
.
- References:
- Book recommendations for database development
- From: Michael Fritz
- Re: Book recommendations for database development
- From: na
- Re: Book recommendations for database development
- From: Mike Margerum
- Book recommendations for database development
- Prev by Date: Re: YAHU!
- Next by Date: Re: YAHU!
- Previous by thread: Re: Book recommendations for database development
- Next by thread: Re: Book recommendations for database development
- Index(es):