BCGSoft Forums
BCGSoft Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 BCGSuite for MFC
 BCGSuite for MFC
 Grid - stay on cell

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Insert Smilie

* Forum Code is ON


T O P I C    R E V I E W
emassicot Posted - 06/14/2021 : 07:30:39 AM

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.
1   L A T E S T    R E P L I E S    (Newest First)
Support Posted - 06/15/2021 : 08:45:54 AM

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 Forums © Copyright (c) 1998-2022 BCGSoft Co Ltd Go To Top Of Page
Snitz Forums 2000