Is there any way which I can allow a user to select multiple rows, using a GridGroupingControl grid?
I need to be able to either use the mouse or use the shift key to select multiple rows.
ADAdministrator Syncfusion Team November 4, 2004 06:03 AM
this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.Any & ~GridSelectionFlags.Cell;
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
If you are using a flat grid (no nested tables), then you can try setting these properties.
But with the current release this does not work well with hierarchical data and nested tables. Here is a forum thread discussing this. Our upcoming 3.0 release addresses this problem.
DLDavid LlewellynNovember 4, 2004 02:55 PM
DLDavid LlewellynNovember 4, 2004 04:54 PM
Just another quick question. How can I retrieve the selected rows, when I press a button? I need to add or delete the selected rows into another Grouped grid.
ADAdministrator Syncfusion Team November 5, 2004 02:20 AM
You can get the selected ranges from this object, this.gridGroupingControl1.TableModel.Selections.Ranges.
And you can iterate through them as shown in this KB. http://www.syncfusion.com/Support/article.aspx?id=564