AD
Administrator
Syncfusion Team
November 30, 2005 12:28 AM UTC
The GridGroupingControl has two different selection architectures. One is inherited from GridControlBase and has no knowledge of the special features of the grid like grouping and nested tables. The second one is a record selection support designed particular for GridGroupingControl. To use the special record selection support, you set:
grid.TableOptions.AllowSelections = GridSelectionFlags.None;
grid.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended; //or MultiSimple or One but not None.
To use the selection support inherited from GridControlBase, you set:
grid.TableOptions.AllowSelections = GridSelectionFlags.Any; //something other than None
But neither of these selection techniques will allow you to select columns. But you can handle teh TableControlCellClick event and do the selections there. Here is a little sample that selects columns when you click the header and allow them to remain selected until you click them a second time.
http://www.syncfusion.com/Support/user/uploads/GGC_CompareData_d2e886a8.zip