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

 All Forums
 BCGSuite for MFC
 BCGSuite for MFC
 Grid - stay on cell
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  


7 Posts

Posted - 06/14/2021 :  07:30:39 AM  Show Profile  Reply with Quote

Would someone be able to tell me how to not move forward to the next grid cell if the user has entered invalid input? So, if I determine the input is invalid, I want to stay on the current cell and highlight it to show them they have made an error. I'm sure there is an easy way, but I am just unable to figure it out. Thanks.


4175 Posts

Posted - 06/15/2021 :  08:45:54 AM  Show Profile  Visit Support's Homepage  Reply with Quote

You may override CBCGPGridCtrl::ValidateItemData in your CBCGPGridCtrl-derived class and return FALSE.

To indicate the error state, please use desktop alert window.

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