BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 BCGControlBar Pro for MFC Forums
 BCGControlBar Professional Edition
 CBCGPGridCtrl with sort and FreezeRows
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

tomaskrasa

27 Posts

Posted - 07/09/2022 :  04:16:31 AM  Show Profile  Reply with Quote
Hello

Is there easy way how to exclude some first (freezed) rows from grid sort an filter operation ?

I need first freezed grid row as SUM values row.

I don't see any prepared way for it.
So i need override virtual compare function and sort my sum row all time first pos ?

Is it best function for override ?
int CBCGPGridCtrl::CompareItems (const CBCGPGridRow* pRow1, const CBCGPGridRow* pRow2, int iColumn) const

Thanks

Support

4187 Posts

Posted - 07/10/2022 :  09:19:13 AM  Show Profile  Visit Support's Homepage  Reply with Quote
Hello,

Thank you for contacting us!

Yes, overriding CBCGPGridCtrl::CompareItems method is a correct way.

To prevent these row to be filtered, override CBCGPGridCtrl::FilterItem method and return FALSE for these rows.

Best regards,

BCGSoft Technical Support
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
BCGSoft Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000