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 » Hide column in CExtGridWnd Collapse All
Subject Author Date
Massimo Germi Jul 20, 2006 - 10:34 AM

Hi,
there is a method to hide a column in a CExtGridWnd derived Class?
I need to have a reference to a row and a record in a table af a DB. The method I would like to implement is to have a column in witch I insert record ID of a record and then hide it. When I need to update one record I have its reference in a hided column.

Tx very much

Technical Support Jul 21, 2006 - 4:30 AM

The truly hidden columns are supported only in the CExtReportGridWnd class. But you don’t need to save some row specific data in any hidden column. This data can be saved in a header column that have a zero width. This is similar to a hidden column and does not affect selection/focus of inner data cells

Massimo Germi Jul 21, 2006 - 6:56 AM

TX, good idea. But if a user try to resize a column near it? Is there a possibility that expands yhe column with 0 width?

tx again

Technical Support Jul 23, 2006 - 12:35 PM

The header columns are similar to header rows. The user can change the column width by clicking between header cells at the top or at the bottom. The user can also change the row height by clicking between header cells on the left or on the right. But it is not possible to change the header row height at the top/bottom or the header column width on the left/right. So, the header column with a zero width will always be invisible regardless of any user actions.

Massimo Germi Jul 24, 2006 - 4:06 AM

Thanks very much