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 » CExtTreeGridWnd sorting and column ordering Collapse All
Subject Author Date
Rado Manzela Feb 12, 2007 - 2:51 AM

Does CExtTreeGridWnd support sorting and column ordering?
It does not work (asserts) when I try to use those features in your treegrid_idea demo application.
I’ve turn them on using this:

    BseModifyStyle(__EGWS_BSE_SORT_COLUMNS,0);
    BseModifyStyleEx(__EGBS_BSE_EX_DRAG_COLUMNS
                |__EGBS_BSE_EX_HIGHLIGHT_PRESSING_COLUMNS_OUTER
                |__EGBS_BSE_EX_HIGHLIGHT_PRESSING_STAY_COLUMNS,
                __EGWS_BSE_EX_DEFAULT,false);

Thank you!

Rado Manzela Feb 14, 2007 - 1:32 AM

Column reordering is not working, it asserts inside your library (after column drop).

Technical Support Feb 14, 2007 - 12:36 PM

Please update the CExtTreeGridDataProvider::SwapDroppedSeries() method in the ../Prof-UIS/Src/ExtTreeGridWnd.cpp file to fix the reported problem:

bool CExtTreeGridDataProvider::SwapDroppedSeries(
      bool bColumns, // true = swap columns, false - rows
      ULONG nRowColNoSrc,
      ULONG nRowColNoDropBefore,
      IDataProviderEvents * pDPE // = NULL
      )
{
      ASSERT_VALID( this );
      if( ! bColumns )
      {
            // this method must never be invoked for rows
            ASSERT( FALSE );
            return true;
      }
      return
            _Tree_GetCacheDP().SwapDroppedSeries(
                  true,
                  _Tree_MapColToCache( nRowColNoSrc ),
                  _Tree_MapColToCache( nRowColNoDropBefore ),
                  pDPE
                  );
}


Technical Support Feb 13, 2007 - 2:32 AM

You can reorder column via drag-and-drop if you apply the __EGBS_BSE_EX_DRAG_COLUMNS style. The sorting is currently not supported for CExtTreeGridWnd. The sorting is available in the CExtReportGridWnd and CExtGridWnd classes only.