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 General Discussion » About setting of CExtGirdWnd Cell Collapse All
Subject Author Date
Seung Cheol Lee Oct 17, 2006 - 8:37 PM

How to set the enable and disable editing of CExtGridWnd Cell !

Suhai Gyorgy Oct 18, 2006 - 4:23 AM

Easiest way to disable editing of all cells in your grid is to remove __EGWS_BSE_EDIT_CELLS_INNER style of your grid. If you want to make only specific cells not editable, specify __EGWS_BSE_EDIT_CELLS_INNER style for your grid, and disable editing only for those cells. You have 2 choices here:

- One of them is disabling the inplace editor altogether. You can achieve this by adding the __EGCS_NO_INPLACE_CONTROL style to the cell’s styles.
- The other way is that you enable the inplace editor, but you make it read-only. This can be done with __EGCS_READ_ONLY style. With this style the user can copy the data from the cell using the inplace editor, but can’t change it’s value.

To have your cell editable, you have to make sure the cell have neither __EGCS_NO_INPLACE_CONTROL, nor __EGCS_READ_ONLY style and that your grid has the __EGWS_BSE_EDIT_CELLS_INNER style set with CExtGridWnd::BseModifyStyle() method. If you also want the outer cells to be editable, specify __EGWS_BSE_EDIT_CELLS_OUTER style as well.

Technical Support Oct 18, 2006 - 8:22 AM

In addition to what Chris wrote, the following FAQ may be helpful: How to make a particular cell read only?.