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 General Discussion » Editable cell - Tree Grid Collapse All
Subject Author Date
Victor Me Jun 4, 2008 - 8:49 AM

Hello!


I have a tree grid and I want to edit a cell when I double click it. I’ve tried to do this but I have failed :(


The styles applied to this control are:


wndGridWnd->SiwModifyStyle(

              (__ESIS_STH_PIXEL|__ESIS_STV_ITEM)    // item scroll window styles



              

              |__EGWS_BSE_EDIT_CELLS_INNER

              |__EGWS_BSE_EDIT_SINGLE_LCLICK

            | __EGBS_SFB_CELLS                        // selection/focus type

            | __EGBS_GRIDLINES

            | __EGBS_RESIZING_CELLS_OUTER            // enable row/column resizing

            | __EGBS_RESIZING_CELLS_INNER            

            | __EGBS_DYNAMIC_RESIZING_H            // resize rows/columns on-the-fly

            ,

        0,

        bRedraw

        );

    wndGridWnd->BseModifyStyleEx(

            __EGBS_EX_CELL_TOOLTIPS_OUTER|__EGBS_EX_CELL_EXPANDING_INNER

        ,

        __EGWS_BSE_EX_DEFAULT,

        bRedraw

        );

    wndGridWnd->BseModifyStyle(

        __EGWS_BSE_SORT_COLUMNS,

        0,

        bRedraw

        );

    wndGridWnd->SiwModifyStyleEx(

              __EGBS_EX_CELL_TOOLTIPS_INNER

            | __EGBS_EX_CELL_EXPANDING_INNER

            | __EGWS_EX_PM_COLORS

            | __EGBS_EX_CORNER_AREAS_3D            

            ,

        0,

        bRedraw

        );

    wndGridWnd->BseModifyStyle(0, __EGWS_BSE_EDIT_CELLS_INNER, false );

 

Tried even manually to call EditCell with the default parameters but it always returns false.


Is it possible to edit a cell in a tree grid ?

Technical Support Jun 6, 2008 - 1:04 PM

It seems the problem is in the following line:

wndGridWnd->BseModifyStyle(0, __EGWS_BSE_EDIT_CELLS_INNER, false );
It removes the __EGWS_BSE_EDIT_CELLS_INNER style which is required to allow inner cells to be edited.