GGC Selection

Hi Iam using GGC.I want to know how to get the multiple records that are selected by pressing Ctrl & left mouse click.Here Iam not selecting the continuous records. Thanks rv

3 Replies

ST stanleyj Syncfusion Team December 5, 2005 01:47 PM UTC

Hi, Try this. this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.None; this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended; Best regards, Stanley


RE resmi December 6, 2005 04:24 AM UTC

hi Iam getting the records as selected.But what actually I want is the data in those selected records .these recors may be continuous one or alternate one thanks >Hi, > >Try this. > this.gridGroupingControl1.TableOptions.AllowSelection = GridSelectionFlags.None; > this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended; > >Best regards, >Stanley


ST stanleyj Syncfusion Team December 6, 2005 07:28 AM UTC

Hi, You could try this. foreach(SelectedRecord r in this.gridGroupingControl1.Table.SelectedRecords ) Console.WriteLine(r.Record); foreach(SelectedRecord r in this.gridGroupingControl1.Table.RelatedTables[0].SelectedRecords ) Console.WriteLine(r.Record); foreach(SelectedRecord r in this.gridGroupingControl1.Table.RelatedTables[0].RelatedTables[0].SelectedRecords ) Console.WriteLine(r.Record); Here is a small sample. Best regards, Stanley

Loader.
Up arrow icon