BCGControlBar Pro for MFC
virtual int CBCGPGridCtrl::CompareItems ( const CBCGPGridRow pRow1,
const CBCGPGridRow pRow2,
int  iColumn 
) const
protectedvirtual

Compares two items or two rows by the given column.

Returns
Zero if the items are identical, < 0 if the first object is less than the second object, or > 0 if the first object greater than the second object.

Called by the framework to compare two items or two rows by the given column. Override the method in a derived class for the custom comparison.

Parameters
pRow1Points to the first row to compare.
pRow2Points to the second row to compare.
iColumnSpecify the zero-based index of a column by which two rows are compared.