Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » ### in narrow cells Collapse All
Subject Author Date
Paul Cowan Oct 4, 2007 - 10:57 AM

How can I get the grid to show ###’s instead of a number for a cell that is too narrow to show the entire number, as Excel does?

Technical Support Oct 8, 2007 - 11:47 AM

You can do this by using a custom grid cell class in which the CExtGridCell::OnPaintText() method is overridden so it measures the text before painting it and paints either the default text or ###.