ggc multiple selection only to the childTable

Hello, i have a gridGroupingControl with a datasource that contains three tables (parent->child->grandChild), i want to permit mutiple selection only to the child level in the grid, i tried : this.TableOptions.AllowSelection = GridSelectionFlags.None; this.TableOptions.ListBoxSelectionCurrentCellOptions = GridListBoxSelectionCurrentCellOptions.None; gridGrouping.GetTableDescriptor("ChildTable").TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended; but it does not work, could u please help me with that Thank you very much in advance,

1 Reply

ST stanleyj Syncfusion Team February 3, 2006 07:34 AM UTC

Hi, You can cancel the selection in the SelectedRecordsChanging event based on the TableDescriptor name. this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.None; this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended; private void gridGroupingControl1_SelectedRecordsChanging(object sender, SelectedRecordsChangedEventArgs e) { if(e.Table.TableDescriptor.Name != "ChildTable") { e.Cancel = true; } } Also refer this article below to know the selection types of GGC. http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=344 Best regards, Stanley

Loader.
Up arrow icon