<< Return to Main Index

< Return to Class Index

class CGXDBEParam: public CGXGridParam

CGXDBEParam holds specific data for the CGXDBEGrid. It can be shared among several views (works the same way as CGXGridParam). You can embed it in a document if you want to support several browse views on the same data, as for example in a dynamic splitter window. The DbfBrows sample shows you how you can embed a CGXBrowseParam in a document, add support for opening several views on the same data, and serialize scheme information. Follow the same approach for CGXDBEParam.

The following CGXDBEParam attributes let you adapt a CGXDBEGrid to your specific needs:

CGXDBEGrid uses this array in order to support rearranging rows. The CGXDBEGrid methods GetRowIndex and GetRecordFromRow dereference the index associated with a row from this array. The CGXDBEGrid implementations of StoreMoveRows, StoreRemoveRows and StoreInsertRows rearrange the m_awRowIndex array.

CGXDBEGrid uses this array in order to support rearranging columns. The CGXDBEGrid methods GetColIndex and GetFieldFromCol dereference the index associated with a column from this array. The CGXDBEGrid implementations of StoreMoveCols, StoreRemoveCols and StoreInsertCols rearrange the m_awColIndex array.

If you want to support serialization so the column positions will also be serialized (when the user has dragged columns), you should serialize this array explicitly. See also the DbfBrows sample for an example on how this is done with CGXBrowseParam.

#include <gxall.h>

See Also

CGXDBEGrid

CGXDBEParam

Class Members