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 » Selecting row or column in grid Collapse All
Subject Author Date
Pavel Pavlov Nov 12, 2004 - 1:53 AM

How to select the full row or column in grid by clicking outer cell (headers)?


Flags __EGBS_SFB_FULL_ROWS and __EGBS_SFB_FULL_COLUMNS doesn’t help because of disabling single cell selecting :(((.


And if these things are possible, how to mix selecting by clicking headers and sorting of columns? One click - two actions. Maybe sorting is process if and only if clicking arrows?

Technical Support Nov 12, 2004 - 6:33 AM

The __EGBS_SFB_FULL_ROWS and __EGBS_SFB_FULL_COLUMNS styles correspond to the full row/column selection mode in the grid control and do not allow the user to select multiple rows/columns. This means that you can only select a single row in the first case and a single column in the second. You may use __EGBS_SFM_FULL_ROWS and __EGBS_SFM_FULL_COLUMNS styles if you need to use the multiple rows/columns selection model. These two styles allow you to select a single region specified by multiple rows/columns. Or you may use the __EGBS_MULTI_AREA_SELECTION style to use more complex selection in which selected rows/columns may alternate with unselected ones. But all these styles do not affect the user’s ability to select cells by clicking the outer header cells. The __EGBS_SF_SELECT_OUTER_COLUMNS and __EGBS_SF_SELECT_OUTER_ROWS are dedicated to allow the user to make selection by clicking header cells. Please note, all the styles above should be used with the SiwModifyStyle method of the grid control.


We think, the header area based selection and sorting features conflict with each other and you should not use them together. You may use one of them as the main feature of your grid control and make others available via the context menu over the header cells, some Options dialog, or in some other way.