Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Offer Har
|
Dec 29, 2006 - 10:55 AM
|
Hi,
I have a cell of type CExtGridCellUpDown. I need to limit the range of numbers in the cell from 0 to 100. How do I do this?
Thanks. Ron.
|
|
Technical Support
|
Dec 30, 2006 - 1:36 PM
|
You can limit the values by overriding the following virtual methods in a CExtGridCellUpDown :
- CExtGridCell::OnQueryEnabledIncrement() - CExtGridCell::OnQueryEnabledDecrement() - CExtGridCell::OnInplaceControlInputVerify()
The later allows you to check if the value the user typed in the cell falls into the range. The bEndEdit parameter indicates if the result should be applied. In some cases a grid cells like CExtGridCellInplaceSlider may be more convenient for this type of user unput.
|
|