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 » Disable grid's cells Collapse All
Subject Author Date
Nachman Israel Nov 26, 2008 - 2:50 AM


I’m using at my code the CExtGridWnd control, and the problem I have is that sometimes I want some of the cells to be disable in particular row when the user choose something at particular cell(meaning that cells are connected to each other), so I changed the cell’s style to read only, this works fine and the cell is truly read only but the problem is that I want it to LOOK like disable data, so the user know it’s read only, and if I only changed the style, the cell is read only, but looks the same.(user know it’s read only only when trying to type something. This problem is mainly seen in cells that are from type number or edit cells.

I will be very happy to get some help,


Osnat Silberberg

Technical Support Nov 26, 2008 - 10:54 AM

You can set the disabled text/background colors of your grid cells when you disable them or make them read-only. The CExtGridCell::TextColorSet() and CExtGridCell::BackColorSet() methods invoked with the CExtGridCell::__ECS_ALL parameter will make the grid cells using the specified text/background color persistently.