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 » Read-only cells Collapse All
Subject Author Date
Simon DESEE Mar 5, 2006 - 1:51 PM

Hello,

How can I set cells to read-only ?

Example:

-----------------------------------------
| First column | second | third |
-----------------------------------------
| Read only | Editable | Editable |
-----------------------------------------
| Editable | Read only | Editable |
-----------------------------------------

And how to define header cell text for a fixed column ?

-----------------------------------------
| "First Header" | "second" | third |
-----------------------------------------
| Fixed Row 1 | some data | some data |
-----------------------------------------

Thanks a lot for your help

Regards,

Technical Support Mar 6, 2006 - 7:05 AM

Each cell in any of our grid windows can be made read-only independently from other cells. This ca be done applying the __EGCS_READ_ONLY style to the cell object (using CExtGridCell::ModifyStyle()). Please note that this style does not disable activation of the cell editor window, i.e. read-only cells use read-only inplace edit windows. This may be useful for copying cell text into clipboard. If you need to disable activation of the inplace editor at all, simply apply the __EGCS_NO_INPLACE_CONTROL cell style.

Simon DESEE Mar 6, 2006 - 7:12 AM

Many thanks for your reply.

Simon