Professional UI Solutions
Site Map   /  Register


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 » Make CExtGridWnd read-only Collapse All
Subject Author Date
Emmanuel V. Apr 17, 2012 - 9:19 AM


Is it possible to set read-only all cells of a CExtGridWnd, without using ModifyStyle(__EGCS_READ_ONLY) for each cells ? I do not want to disable CExtGridWnd, I want it able to expand/scroll cells.


Technical Support Apr 23, 2012 - 9:08 AM

You can override the CExtGridWnd::OnGridCellInplaceControlCreate() virtual method. Your method should invoke parent class method and change the default cell editor in such a way that it is read only.