Click to See Complete Forum and Search --> : CGridCtrl in Mutli View Environment


April 17th, 1999, 02:33 PM
I'm using Chis' CGridControl for a current (personal) project. The UI esentially consists of a Docking Toolbar that hosts the menu with buttons for each of the four views. There is only one Doc for all views. The Data contained in the Grid changes for each view but some of it may actually have been entered on another view : View One contains a comparison of a data set versus one of the columns entered in View 2,3 or 4 depending on the user setting.

Not being familar with this control I initially created DataArrays for each Data set and control functions in CDoc that update the Arrays. Looking into it a bit further I realized that I am duplicating data and cause substantial performance loss. I also had to deal with a lot of data conversion between text, int and float (The grids contain text and values, all stored in the same data array).

I intend to scrap this lousy code and initialize the entire grid with all the columns used in all the views from CDoc and hide the columns not needed on the View level. The one thing I can't get to work is the data exchange between CDoc (and the initialized Grid), the View and the Grid Object on my Form (needed ?).

Any suggestions are welcome - I assume that this is also going to eliminate the need to serialize each cell/array value individually :)

Thank you.

Pras