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 » Is there a way to double-click column to auto adjust width of the column to the widest cell? Collapse All
Subject Author Date
Offer Har Nov 10, 2008 - 5:21 AM

Thanks.

Technical Support Nov 10, 2008 - 11:40 AM

Yes. This feature is called best fitting. It’s supported both for columns and rows. The CExtGridWnd::BestFitColumn() method does best-fitting for columns and CExtGridWnd::BestFitRow() for rows. The set of __EGBS_BSE_EX_DBLCLK_BEST_FIT_*** styles allows you to turn on best-fitting on double clicks between columns and/or rows. It’s possible to enable double clicks between outer header cells and/or inner data cells. It’s possible to configure best-fitting to use measured outer header cells, all the inner data cells or only displayed on the screen inner data cells.

Offer Har Nov 10, 2008 - 4:19 PM

Great - thanks.