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 |
|
Paul Cowan
|
Feb 1, 2007 - 12:42 PM
|
How can I set a limit to the number of characters that can be entered into a cell, specifically a CExtGridCellNumber cell?
|
|
Technical Support
|
Feb 2, 2007 - 4:29 AM
|
You can control this in the following two ways: 1) At the cell level. Override the CExtGridCell::OnInplaceControlTextInputVerify() method. 2) At the grid level. Overide the CExtGridWnd::OnGridCellInplaceControlTextInputVerify() method.
CExtGridCell::OnInplaceControlTextInputVerify() method of each cell calls the CExtGridWnd::OnGridCellInplaceControlTextInputVerify() method of the grid. So it is up to you which method to use.
|
|