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 |
|
David Skok
|
Mar 14, 2007 - 8:27 AM
|
I want to hide/show some columns in CExtGridWnd. I use
pCell->ExtentSet(0, 0); pCell->ExtentSet(0, 1);
to hide the column then call
OnSwRecalcLayout( true ); OnSwUpdateScrollBars();
The first problem is the grid does not redraw showing the new layout.
The second problem is when I cursor through to focus cells in the grid, the zero width column is still focusable. Focus should skip over the zero width column. How can I fix this?
|
|
Technical Support
|
Mar 15, 2007 - 2:02 PM
|
You can use OnSwDoRedraw() to redraw the grid window. The CExtReportGridWnd class may be more convenient for working with active/inactive columns. Alternatively you can implement the keyboard processing for the VK_LEFT and VK_RIGHT keys in a CExtGridWnd -derived class manually so you can skip any column that has a zero width.
|
|