Multiple Select in Grouping Grid?

Hello there, 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. Thanks, David

4 Replies

AD Administrator Syncfusion Team November 4, 2004 11:03 AM UTC

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. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=18891


DL David Llewellyn November 4, 2004 07:55 PM UTC

Thank you.


DL David Llewellyn November 4, 2004 09:54 PM UTC

Hello Again, 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. Thank you, David.


AD Administrator Syncfusion Team November 5, 2004 07:20 AM UTC

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

Loader.
Up arrow icon