Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Using the DataGrid as a Control with an Ado Recordset Collapse All
Subject Author Date
Johannes Schwenk May 29, 2008 - 6:23 AM

Hallo,

I want to use the ProfUIS 2.80 Datagrid as a Control with an ADO Recordset on a Visual C++ 2005 Dialog. What is the easiest way to do this?

Do i really have to create my own DataGrid, DataProvider and DataCell classes derived From CExtGridWnd, CExtGridDataProviderRecordset and CExtGridCell and then implement the SetAdoRecordset function FROM the ChildView Class in the samples, or is there some easier way?

Thanks your for your answers!

Technical Support Jun 24, 2008 - 4:48 AM

You shoud use the code from ChildView.h and ChildView.cpp. The toolbars you mentioned are used for navigating through a data set. If you don’t need this functionality it is not hard to remove all the toolbars related code.


Johannes Schwenk Jun 20, 2008 - 9:10 AM

Thank you, but I don’t know which classes/functions I have to add to my project. And in the CChildView class from the AdoRecordsetView Example are some functions, which control toolbars and things like that. But I don`t have a toolbar in my project.

Is there a Header File which I can add to my Project, to have all the Classes and Class Function I need to use the DataGrid Control with ADO?

And is there a Documentation for the Prof-UIS DataGrid, which descripes the main functions to show/edit the data I gave to the DataProvider Class in the Grid?

Thank You!

Technical Support May 30, 2008 - 4:09 AM

You can simply port these classes from the AdoRecordsetView sample application or from this one:

AdoRecordsetEdit.zip

Here is the simple possible sample application with a grid in a dialog:

ForMarianne.zip

Johannes Schwenk Jun 20, 2008 - 9:11 AM

Thank you, but I don’t know which classes/functions I have to add to my project. And in the CChildView class from the AdoRecordsetView Example are some functions, which control toolbars and things like that. But I don`t have a toolbar in my project.

Is there a Header File which I can add to my Project, to have all the Classes and Class Function I need to use the DataGrid Control with ADO?

And is there a Documentation for the Prof-UIS DataGrid, which descripes the main functions to show/edit the data I gave to the DataProvider Class in the Grid?

Thank You!