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 » Selecting cells and rows in CExtGridWnd Collapse All
Subject Author Date
Bart Kampers May 27, 2009 - 1:48 AM


I derived a window from CExtGridWnd and I want users to be able to either select a single cell or to select an entire row by clicking on the row header. So I thought I should modify the style like this:







Strangely enough this alows to select multiple cells in a row but not selecting the entire row by clicking on the header. So I tried a lot of combinations with __EGBS_SFM_CELLS_H,  __EGBS_SFB_FULL_ROWS and __EGBS_SFB_CELLS but none of them does the trick.

Could anyone help?



Technical Support May 27, 2009 - 12:48 PM

Please take a look at the Products tab page in the SimpleGrids sample. It contains the grid control with the selection behavior like you need. This grid is initialized in the CDemoGrid::_InitDemoTable_Products() method using similar styles. So, we think you should have some overridden virtual methods or some other types of grid styles which prevent the normal selection behavior in your grid control. Could you show us the entire grid’s source code?