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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

What are the two selection types in GridGroupingControl?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: April 30, 2011 |
Last Revised Date: April 20, 2015
Tags: selection

There are two selection types in the GridGroupingControl, they are

  1. Range selection (cell based selection)
  2. Record selection

Range selection

You can turn on this selection by setting the grid.tableOptions.AllowSelections to something other than None. By this selection, you can select range of cells/columns/rows. This selection functionality raises events like the grid.TableModel.SelectionChanging/Changed.



The following screenshots illustrates range selection.

Figure 1: Range selection(Cell based selection)

Record selection

This selection is a record based selection support that is specific to the GridGroupingControl. You can turn on this selection support by setting the grid.TableOptions.AllowSelections to None and setting the grid.TableOptions.ListBoxSelectionMode to something other than None. This selection support raises the grid.SelectedRecordsChanged/Changing rather than raising the grid.TableModel.SelectionChanging/Changed events.



The following screenshots illustrates record selection.

Figure 2: Record based selection

C:\Users\ApoorvahR\Desktop\Note.pngNote: The default value of the gridGroupingControl1.TableOptions.AllowSelection is None. With this, you can able to select the current cell alone.

Sample Link

C#: SelectionModesInGGC

VB: SelectionModesInGGC

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon