BCGSuite for MFC
virtual BOOL CBCGPGridCtrl::CanDropColumn ( int  nNewPosition,
int  nOldPosition 
) const
inlinevirtual

Tells whether a column can be dropped at specified positions.

Override this function to prevent some columns to be dropped at specified positions.

Parameters
nNewPositionNew order of a dragged column. The zero-based order in which the item appears in the column header control, from left to right.
nOldPositionThe current order of a dragging column. The zero-based order in which the item appears in the grid header control, from left to right. If nOldPosition is -1 then the column is currently hidden and being dragged from the Column Chooser.
Returns
Should return TRUE, if the specified column can be dropped during drag-and-drop operations; otherwise FALSE.