We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

GridGroupingControl and column selection

Hi, is there a way to select (highlight) the whole comlumn in a gridgroupingcontrol when clicking on the column header? Cheers, Markus

2 Replies

AD Administrator Syncfusion Team August 16, 2005 03:02 AM

The GroupingGridControl has 2 different selection mechanisms. One is the record selection support that is specific to the GridGroupingControl that has knowledge of grouping and nested tables. It only allows selecting records. You indicate you want to use this support by setting: grid.TableOptions.AllowSelection = GridSelectionFlags.None; grid.TableOptions.ListBoxSelectionMode = (something other than None); The other selection support is the support that is inherited from GridControlBase. This support will let you select any set of cells depending upon the setting specified in grid.TableOptions.AllowSelections. You also have to set grid.TableOptions.ListBoxSelectionMode = None. But this inherited selection techniques is only reasonable for simple flat tables. It does not have any knowledge of groups or nested tables. But it will allow you to select columns in flat tables if that is what you want.


AD Administrator Syncfusion Team August 16, 2005 05:49 AM

Markus, Check out also the following thread: http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=26611 There is a sample at the end of the thread that shows another option for selecting columns. Stefan >The GroupingGridControl has 2 different selection mechanisms. > >One is the record selection support that is specific to the GridGroupingControl that has knowledge of grouping and nested tables. It only allows selecting records. You indicate you want to use this support by setting: > >grid.TableOptions.AllowSelection = GridSelectionFlags.None; >grid.TableOptions.ListBoxSelectionMode = (something other than None); > > >The other selection support is the support that is inherited from GridControlBase. This support will let you select any set of cells depending upon the setting specified in grid.TableOptions.AllowSelections. You also have to set grid.TableOptions.ListBoxSelectionMode = None. But this inherited selection techniques is only reasonable for simple flat tables. It does not have any knowledge of groups or nested tables. But it will allow you to select columns in flat tables if that is what you want.

Loader.
Live Chat Icon For mobile
Up arrow icon