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 » How can I make a read-only column in the grid? Collapse All
Subject Author Date
Thomas Roeder Nov 22, 2005 - 3:37 PM

Hi,


How can I make a read-only column in the grid(CExtGridWnd)?


Thanks.


 

Thomas Roeder Nov 23, 2005 - 9:50 AM

pCellVariant->ModifyStyle( __EGCS_READ_ONLY | __EGCS_NO_INPLACE_CONTROL);


 

Technical Support Nov 23, 2005 - 11:55 AM

Yes, to make any CExtGridCell object (including all the derived cell classes) non-editable, just apply the __EGCS_READ_ONLY cell style to make the in-place editor control read-only. You can apply __EGCS_NO_INPLACE_CONTROL to disable activation of the in-place editor control at all.